Sha256: 8f85633dbc6f448b4cbb8f0ccd0fb7e76f5b58a49c830a93bc936263624a5c19

Contents?: true

Size: 956 Bytes

Versions: 7

Compression:

Stored size: 956 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')
require File.join(dir, 'remarkable_activerecord', 'human_names')

# 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, Spec::Example::ExampleGroup)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
remarkable_activerecord-3.0.6 lib/remarkable_activerecord.rb
remarkable_activerecord-3.0.3 lib/remarkable_activerecord.rb
remarkable_activerecord-3.0.5 lib/remarkable_activerecord.rb
remarkable_activerecord-3.0.2 lib/remarkable_activerecord.rb
remarkable_activerecord-3.0.4 lib/remarkable_activerecord.rb
remarkable_activerecord-3.0.8 lib/remarkable_activerecord.rb
remarkable_activerecord-3.0.7 lib/remarkable_activerecord.rb