Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (30 sloc) 0.882 kB
require 'simplecov'
require 'coveralls'
require 'rspec/autorun'
require 'bundler/setup'
require 'pry'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start
require 'memory_model'
def eager_load_all!(constants)
constants = [constants].flatten
constants.each do |constant|
constant.eager_load! if constant.respond_to? :eager_load!
begin
eager_load_all! constant.constants.map { |c| constant.const_get c }
rescue NoMethodError, SystemStackError
nil
end
end
end
eager_load_all! MemoryModel
Dir["./spec/support/**/*.rb"].sort.each {|f| require f}
RSpec.configure do |config|
config.filter_run focus: true
config.run_all_when_everything_filtered = true
config.alias_example_to :fit, focus: true
config.alias_example_to :fits, focus: true
end
Jump to Line
Something went wrong with that request. Please try again.