diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/mixlib/config_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/mixlib/config_spec.rb b/spec/mixlib/config_spec.rb index 598eb60..cf2841b 100644 --- a/spec/mixlib/config_spec.rb +++ b/spec/mixlib/config_spec.rb @@ -759,8 +759,8 @@ describe Mixlib::Config do x 10 y 20 end - @klass.blah.x.should == 10 - @klass.blah.y.should == 20 + expect(@klass.blah.x).to eq 10 + expect(@klass.blah.y).to eq 20 end it "setting the context values in a yielded block overrides the default values" do @@ -768,8 +768,8 @@ describe Mixlib::Config do b.x = 10 b.y = 20 end - @klass.blah.x.should == 10 - @klass.blah.y.should == 20 + expect(@klass.blah.x).to eq 10 + expect(@klass.blah.y).to eq 20 end it "after reset of the parent class, children are reset" do @@ -1186,7 +1186,7 @@ alpha: beta EOH end - it "turns YAML into method-style setting" do + it "turns JSON into method-style setting" do allow(File).to receive(:exists?).and_return(true) allow(File).to receive(:readable?).and_return(true) allow(IO).to receive(:read).with("config.json").and_return(json) |