Sha256: 121dc179e933abf22203171bafdfd299c1441ae597610917928393f19393f360
Contents?: true
Size: 982 Bytes
Versions: 1
Compression:
Stored size: 982 Bytes
Contents
require "simplecov" SimpleCov.start require "active_record" require "database_cleaner" require "factory_girl" Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f} require "read_activity" ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:") require_relative "schema.rb" require_relative "models.rb" require "generators/read_activity/templates/create_read_activity_marks" CreateReadActivityMarks.migrate(:up) FactoryGirl.find_definitions RSpec.configure do |config| config.before(:suite) do DatabaseCleaner.strategy = :truncation end config.before(:each) do DatabaseCleaner.start end config.after(:each) do DatabaseCleaner.clean end config.expect_with :rspec do |expectations| expectations.include_chain_clauses_in_custom_matcher_descriptions = true end config.mock_with :rspec do |mocks| mocks.verify_partial_doubles = true end config.order = :random end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
read_activity-0.1.0 | spec/spec_helper.rb |