Sha256: dc844e230522a4ecd370bb31e9559c1d9aa4fc5f82412a252fbf58991c2dce97

Contents?: true

Size: 588 Bytes

Versions: 18

Compression:

Stored size: 588 Bytes

Contents

# This will responsable to check which ORM is loaded and include respective
# matchers.
#
if defined?(ActiveRecord::Base)
  unless Remarkable.const_defined?('ActiveRecord')
    begin
      require 'remarkable_activerecord'
    rescue LoadError
      require 'rubygems'
      gem 'remarkable_activerecord'
      require 'remarkable_activerecord'
    end
  end

  # Include Remarkable ActiveRecord matcher in appropriate ExampleGroup
  if defined?(Spec::Rails)
    Remarkable.include_matchers!(Remarkable::ActiveRecord, Spec::Rails::Example::ModelExampleGroup)
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
remarkable_rails-3.1.7 lib/remarkable_rails/active_orm.rb
remarkable_rails-3.1.8 lib/remarkable_rails/active_orm.rb
remarkable_rails-3.0.4 lib/remarkable_rails/active_orm.rb
remarkable_rails-3.0.5 lib/remarkable_rails/active_orm.rb
remarkable_rails-3.0.6 lib/remarkable_rails/active_orm.rb
remarkable_rails-3.0.10 lib/remarkable_rails/active_orm.rb
remarkable_rails-3.0.2 lib/remarkable_rails/active_orm.rb
remarkable_rails-3.0.3 lib/remarkable_rails/active_orm.rb
remarkable_rails-3.1.1 lib/remarkable_rails/active_orm.rb
remarkable_rails-3.1.3 lib/remarkable_rails/active_orm.rb
remarkable_rails-3.0.7 lib/remarkable_rails/active_orm.rb
remarkable_rails-3.1.0 lib/remarkable_rails/active_orm.rb
remarkable_rails-3.1.2 lib/remarkable_rails/active_orm.rb
remarkable_rails-3.0.9 lib/remarkable_rails/active_orm.rb
remarkable_rails-3.0.8 lib/remarkable_rails/active_orm.rb
remarkable_rails-3.1.4 lib/remarkable_rails/active_orm.rb
remarkable_rails-3.1.5 lib/remarkable_rails/active_orm.rb
remarkable_rails-3.1.6 lib/remarkable_rails/active_orm.rb