summaryrefslogtreecommitdiffstats
path: root/spec/unit/rails/host_spec.rb
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2010-06-24 18:42:15 -0700
committerJesse Wolfe <jes5199@gmail.com>2010-06-25 16:12:09 -0700
commitcf9bcad6bfdaf730a41f9429a8e2d140b8d1d51d (patch)
treeca534ee3ee284470340bffba2202d23662c11a04 /spec/unit/rails/host_spec.rb
parentc70c96b7075a13b0e90651811a3a4bc1223f4e7f (diff)
downloadpuppet-cf9bcad6bfdaf730a41f9429a8e2d140b8d1d51d.tar.gz
puppet-cf9bcad6bfdaf730a41f9429a8e2d140b8d1d51d.tar.xz
puppet-cf9bcad6bfdaf730a41f9429a8e2d140b8d1d51d.zip
maint: Fixing test to reflect that host environment assignment now takes an object instead of a string
Diffstat (limited to 'spec/unit/rails/host_spec.rb')
-rwxr-xr-xspec/unit/rails/host_spec.rb2
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