From cf9bcad6bfdaf730a41f9429a8e2d140b8d1d51d Mon Sep 17 00:00:00 2001 From: Matt Robinson Date: Thu, 24 Jun 2010 18:42:15 -0700 Subject: maint: Fixing test to reflect that host environment assignment now takes an object instead of a string --- spec/unit/rails/host_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit