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