Skip to content

Commit

Permalink
fixed spec errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Rossman authored and adamedx committed Oct 10, 2013
1 parent 59060c1 commit 89e2834
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/unit/plugins/gce_spec.rb
Expand Up @@ -25,9 +25,8 @@
end

shared_examples_for "!gce" do
it "should NOT attempt to fetch the gce metadata" do
Ohai::Mixin::GCEMetadata.should_not_receive(:http_client)
@ohai._require_plugin("gce")
it 'should not behave like gce' do
@plugin[:gce].should be_nil
end
end

Expand Down Expand Up @@ -67,7 +66,7 @@

describe "without hint file" do
it_should_behave_like "!gce"

before(:each) do
File.stub!(:exist?).with('/etc/chef/ohai/hints/gce.json').and_return(false)
File.stub!(:exist?).with('C:\chef\ohai\hints/gce.json').and_return(false)
Expand All @@ -87,4 +86,5 @@
File.stub!(:read).with('C:\chef\ohai\hints/ec2.json').and_return('')
end
end

end

0 comments on commit 89e2834

Please sign in to comment.