Sha256: 888c401981e37ef40e6bbb5c4382992667185569251421f5fde395b2a3c453eb

Contents?: true

Size: 863 Bytes

Versions: 1

Compression:

Stored size: 863 Bytes

Contents

# Load Remarkable
unless Object.const_defined?('Remarkable')
  begin
    require 'remarkable'
  rescue LoadError
    require 'rubygems'
    gem 'remarkable'
    require 'remarkable'
  end
end

# Load Remarkable ActiveRecord files
dir = File.dirname(__FILE__)
require File.join(dir, 'remarkable_activerecord', 'base')

# Add locale
Remarkable.add_locale File.join(dir, '..', 'locale', 'en.yml')

# Add matchers
Dir[File.join(dir, 'remarkable_activerecord', 'matchers', '*.rb')].each do |file|
  require file
end

# By default, ActiveRecord matchers are not included in any example group.
# The responsable for this is RemarkableRails. If you are using ActiveRecord
# without Rails, put the line below in your spec_helper to include ActiveRecord
# matchers into rspec globally.
# Remarkable.include_matchers!(Remarkable::ActiveRecord, Rspec::Example::ExampleGroup)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
remarkable_activerecord-4.0.0.alpha1 lib/remarkable_activerecord.rb