Sha256: a3d8463f624553aa1df9be4ec9ca95d64e4d167f642ffe6cfbf0d55c4dcb9148
Contents?: true
Size: 586 Bytes
Versions: 2
Compression:
Stored size: 586 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
remarkable_rails-3.0.0 | lib/remarkable_rails/active_orm.rb |
remarkable_rails-3.0.1 | lib/remarkable_rails/active_orm.rb |