diff options
author | tyler-ball <tyleraball@gmail.com> | 2018-02-28 15:53:18 -0700 |
---|---|---|
committer | tyler-ball <tyleraball@gmail.com> | 2018-02-28 15:56:19 -0700 |
commit | 6bcff5a969b8548e9b90510da3e0ddea56003e8d (patch) | |
tree | 79bb974512e383f4a9f2586c15f49811213dc513 /spec | |
parent | 6a9556d26fcdb151cee787327ab8a46556eaa269 (diff) | |
download | mixlib-config-6bcff5a969b8548e9b90510da3e0ddea56003e8d.tar.gz |
Fixing some test warnings I sawtoml_support
Signed-off-by: tyler-ball <tball@chef.io>
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) |