summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xspec/unit/rails.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/rails.rb b/spec/unit/rails.rb
index f61288f7a..f18a5a4fd 100755
--- a/spec/unit/rails.rb
+++ b/spec/unit/rails.rb
@@ -48,7 +48,7 @@ describe Puppet::Rails, "when initializing any connection" do
end
describe "on ActiveRecord 2.1.x" do
- confine "ActiveRecord 2.1.x" => (::ActiveRecord::VERSION::MAJOR == 2 and ::ActiveRecord::VERSION::MINOR <= 1)
+ confine "ActiveRecord 2.1.x" => (Puppet.features.rails? and ::ActiveRecord::VERSION::MAJOR == 2 and ::ActiveRecord::VERSION::MINOR <= 1)
it "should set ActiveRecord::Base.allow_concurrency" do
ActiveRecord::Base.expects(:allow_concurrency=).with(true)