Sha256: 863dfda5a69e2e17700db2a9e5f475a84525127961b24c783c36157d1cf6cba7
Contents?: true
Size: 1.45 KB
Versions: 2
Compression:
Stored size: 1.45 KB
Contents
require 'pry' require 'rails' require 'eitil' # Eventually implement specs for all layers. require "eitil_core/railtie" # require "eitil_store/railtie" # require "eitil_support/railtie" require "eitil_core" # require "eitil_store" # require "eitil_support" ENV['RAILS_ENV'] ||= 'test' require File.expand_path('dummy_app/config/environment', __dir__) RSpec.configure do |config| 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 end # This block is added by us: the new methods .pry_describe and .pry_it # automatically start a pry session after running the spec, allowing # you to inspect the application's post spec state. RSpec.configure do |config| config.alias_example_group_to :pry_describe, pry: true config.alias_example_group_to :pry_context, pry: true config.alias_example_to :pry_it, pry: true config.alias_example_to :pry_example, pry: true config.alias_example_to :pry_specify, pry: true config.after(:example, pry: true) do |example| require 'pry' binding.pry end end # This is added by us, in order to set the :documentation formatter, # which gives quite a lot of information about the tests, as default RSpec.configure do |config| config.formatter = :documentation end # added by us, required to prevent an error in Rack::Test def app Rails.application end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eitil-2.0.8 | spec/spec_helper.rb |
eitil-2.0.7 | spec/spec_helper.rb |