diff options
-rwxr-xr-x | spec/unit/rails/host_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/rails/host_spec.rb b/spec/unit/rails/host_spec.rb index 45d4808fe..ac0896350 100755 --- a/spec/unit/rails/host_spec.rb +++ b/spec/unit/rails/host_spec.rb @@ -40,7 +40,7 @@ describe "Puppet::Rails::Host" do Puppet::Rails::Host.expects(:find_by_name).with("foo").returns @host @node.environment = "production" - @host.expects(:environment=).with "production" + @host.expects(:environment=).with {|x| x.name.to_s == 'production' } Puppet::Rails::Host.from_puppet(@node) end |