spec/config_spec.rb in stackster-0.2.0 vs spec/config_spec.rb in stackster-0.2.1
- old
+ new
@@ -7,9 +7,10 @@
'secret_key' => 'secret',
'region' => 'us-west-1' }
end
it "should create a new config object from the hash passed as config" do
+ File.should_receive(:open).exactly(0).times
config = Stackster::Config.new :config => @config
config.access_key.should == @config['access_key']
config.secret_key.should == @config['secret_key']
config.region.should == @config['region']
end