summaryrefslogtreecommitdiff
path: root/spec/unit/knife/tag_list_spec.rb
diff options
context:
space:
mode:
authorClaire McQuin <mcquin@users.noreply.github.com>2014-11-07 14:48:12 -0800
committerClaire McQuin <mcquin@users.noreply.github.com>2014-11-07 14:48:12 -0800
commit1888a8a9c5cbc1bdcfb1d9aa919a911c72cbbff4 (patch)
tree2e3a93f98865ad7091fdd24319b1aba6d03dcc70 /spec/unit/knife/tag_list_spec.rb
parentbf6340a113dd0c37e2084c70007d201742f11e9d (diff)
parent51430f7f2c25773f5ad3c05015eed95d315f798d (diff)
downloadchef-1888a8a9c5cbc1bdcfb1d9aa919a911c72cbbff4.tar.gz
Merge pull request #2324 from opscode/mcquin/rspec-3
Update to RSpec 3
Diffstat (limited to 'spec/unit/knife/tag_list_spec.rb')
-rw-r--r--spec/unit/knife/tag_list_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/knife/tag_list_spec.rb b/spec/unit/knife/tag_list_spec.rb
index 3724a5c0b7..9c71d22f06 100644
--- a/spec/unit/knife/tag_list_spec.rb
+++ b/spec/unit/knife/tag_list_spec.rb
@@ -7,16 +7,16 @@ describe Chef::Knife::TagList do
@knife.name_args = [ Chef::Config[:node_name], "sadtag" ]
@node = Chef::Node.new
- @node.stub :save
+ allow(@node).to receive :save
@node.tags << "sadtag" << "happytag"
- Chef::Node.stub(:load).and_return @node
+ allow(Chef::Node).to receive(:load).and_return @node
end
describe "run" do
it "can list tags on a node" do
expected = %w(sadtag happytag)
- @node.tags.should == expected
- @knife.should_receive(:output).with(expected)
+ expect(@node.tags).to eq(expected)
+ expect(@knife).to receive(:output).with(expected)
@knife.run
end
end