Sha256: 558aebbb1e45ad5b9fc26bbed71c57c0f2479bf2e211e0898d1295790d07a54e
Contents?: true
Size: 888 Bytes
Versions: 1
Compression:
Stored size: 888 Bytes
Contents
ENV['RACK_ENV'] = 'test' require 'rack/test' require 'securerandom' require 'database_cleaner' $LOAD_PATH << '.' require 'app/web/server' require 'config/environment' require 'spec/support/request_helpers' RSpec.configure do |config| config.include(Rack::Test::Methods, type: :request) config.include(RequestHelpers, type: :request) 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.shared_context_metadata_behavior = :apply_to_host_groups config.disable_monkey_patching! config.order = :random Kernel.srand config.seed EventSourcery.configure do |config| config.logger = Logger.new(nil) end config.before do DatabaseCleaner.strategy = :truncation DatabaseCleaner.clean end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
event_sourcery_generators-0.2.0 | lib/event_sourcery_generators/generators/templates/project/spec_helper.rb.tt |