Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

Commit

Permalink
detect rails in a better fashion.
Browse files Browse the repository at this point in the history
  • Loading branch information
Grant Ammons authored and ragaskar committed Jun 25, 2011
1 parent 984845f commit a032dd6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/jasmine/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def self.rspec2?
end

def self.rails3?
return Rails.version.split(".").first.to_i == 3 if defined? Rails
Gem.available? "rails", ">= 3.0"
end
end

0 comments on commit a032dd6

Please sign in to comment.