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

Version Path
minitest-spec-rails-4.7.11 lib/minitest-spec-rails/util.rb
minitest-spec-rails-4.7.10 lib/minitest-spec-rails/util.rb
minitest-spec-rails-4.7.9 lib/minitest-spec-rails/util.rb
minitest-spec-rails-4.7.8 lib/minitest-spec-rails/util.rb
minitest-spec-rails-4.7.7 lib/minitest-spec-rails/util.rb
minitest-spec-rails-4.7.6 lib/minitest-spec-rails/util.rb
minitest-spec-rails-4.7.5 lib/minitest-spec-rails/util.rb
minitest-spec-rails-4.7.4 lib/minitest-spec-rails/util.rb
minitest-spec-rails-4.7.3 lib/minitest-spec-rails/util.rb
minitest-spec-rails-4.7.2 lib/minitest-spec-rails/util.rb
minitest-spec-rails-4.7.1 lib/minitest-spec-rails/util.rb
minitest-spec-rails-4.7.0 lib/minitest-spec-rails/util.rb
minitest-spec-rails-4.3.8 lib/minitest-spec-rails/util.rb
minitest-spec-rails-4.3.7 lib/minitest-spec-rails/util.rb
minitest-spec-rails-4.3.6 lib/minitest-spec-rails/util.rb
minitest-spec-rails-4.3.5 lib/minitest-spec-rails/util.rb
minitest-spec-rails-4.3.4 lib/minitest-spec-rails/util.rb
minitest-spec-rails-4.3.3 lib/minitest-spec-rails/util.rb
minitest-spec-rails-4.3.2 lib/minitest-spec-rails/util.rb
minitest-spec-rails-4.3.1 lib/minitest-spec-rails/util.rb