diff options
author | Matt Robinson <matt@puppetlabs.com> | 2010-06-24 18:42:15 -0700 |
---|---|---|
committer | Jesse Wolfe <jes5199@gmail.com> | 2010-06-25 16:12:09 -0700 |
commit | cf9bcad6bfdaf730a41f9429a8e2d140b8d1d51d (patch) | |
tree | ca534ee3ee284470340bffba2202d23662c11a04 /spec/unit/rails/host_spec.rb | |
parent | c70c96b7075a13b0e90651811a3a4bc1223f4e7f (diff) | |
download | puppet-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-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 |