diff options
| author | Luke Kanies <luke@madstop.com> | 2008-12-30 18:23:40 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-12-30 18:23:40 -0600 |
| commit | 16ff58b7fbb12ab1b927414823c387c7e04fad08 (patch) | |
| tree | 3f8994d5800049a2a2142cd38763f9bdbf8e86cd /spec/unit/parser | |
| parent | d2d3de5884a66f529101854a42ac52be83cde446 (diff) | |
| parent | 3b8a77dfd97774c21156efb1553f3a5a0372c7fa (diff) | |
| download | puppet-16ff58b7fbb12ab1b927414823c387c7e04fad08.tar.gz puppet-16ff58b7fbb12ab1b927414823c387c7e04fad08.tar.xz puppet-16ff58b7fbb12ab1b927414823c387c7e04fad08.zip | |
Merge commit 'masterzen/tickets/1834'
Diffstat (limited to 'spec/unit/parser')
| -rwxr-xr-x | spec/unit/parser/collector.rb | 4 | ||||
| -rwxr-xr-x | spec/unit/parser/compiler.rb | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/spec/unit/parser/collector.rb b/spec/unit/parser/collector.rb index ede583b96..edd74e25f 100755 --- a/spec/unit/parser/collector.rb +++ b/spec/unit/parser/collector.rb @@ -194,7 +194,7 @@ describe Puppet::Parser::Collector, "when collecting virtual resources" do end describe Puppet::Parser::Collector, "when collecting exported resources" do - confine Puppet.features.rails? => "Cannot test Rails integration without ActiveRecord" + confine "Cannot test Rails integration without ActiveRecord" => Puppet.features.rails? before do @scope = stub 'scope', :host => "myhost", :debug => nil @@ -364,7 +364,7 @@ describe Puppet::Parser::Collector, "when collecting exported resources" do end describe Puppet::Parser::Collector, "when building its ActiveRecord query for collecting exported resources" do - confine Puppet.features.rails? => "Cannot test Rails integration without ActiveRecord" + confine "Cannot test Rails integration without ActiveRecord" => Puppet.features.rails? before do @scope = stub 'scope', :host => "myhost", :debug => nil diff --git a/spec/unit/parser/compiler.rb b/spec/unit/parser/compiler.rb index 203105289..f36b6fd4f 100755 --- a/spec/unit/parser/compiler.rb +++ b/spec/unit/parser/compiler.rb @@ -478,6 +478,7 @@ describe Puppet::Parser::Compiler do end describe Puppet::Parser::Compiler, "when storing compiled resources" do + confine "Cannot test Rails integration without ActiveRecord" => Puppet.features.rails? it "should store the resources" do Puppet.features.expects(:rails?).returns(true) |
