Sha256: 8c1a0b160d87c4eb5fd5cb4726d025fa201a10ea19764f108e05a9b1014c0416
Contents?: true
Size: 408 Bytes
Versions: 20
Compression:
Stored size: 408 Bytes
Contents
module MiniTestSpecRails module Util def self.rails3? ; rails30? || rails31? || rails32? ; end def self.rails30? ; rails_version == '3.0' ; end def self.rails31? ; rails_version == '3.1' ; end def self.rails32? ; rails_version == '3.2' ; end def self.rails40? ; rails_version == '4.0' ; end def self.rails_version ; ::Rails.version.split('.')[0,2].join('.') ; end end end
Version data entries
20 entries across 20 versions & 1 rubygems