Sha256: b17ada2d270e9b7e4d2dc8f0806631e828d96217fc40fff58f4fd19be8699716

Contents?: true

Size: 859 Bytes

Versions: 1

Compression:

Stored size: 859 Bytes

Contents

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

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

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

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