Sha256: 2e2a4b7280f0095d67fa2331fe1e7b2af5cca243fdfb662d74685c7d9e2addc6

Contents?: true

Size: 1.41 KB

Versions: 5

Compression:

Stored size: 1.41 KB

Contents

require 'pry'
require 'rails'

require 'eitil'

# Implement specs for other railties later on, start with eitil_core.

require "eitil_core/railtie"
# require "eitil_store/railtie"
# require "eitil_integrate/railtie"
# require "eitil_support/railtie"
# require "eitil_wrapper/railtie"

require "eitil_core"
# require "eitil_store"
# require "eitil_integrate"
# require "eitil_support"
# require "eitil_wrapper"

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
eitil-1.2.4 spec/spec_helper.rb
eitil-1.2.3 spec/spec_helper.rb
eitil-1.2.2 spec/spec_helper.rb
eitil-1.2.1 spec/spec_helper.rb
eitil-1.2.0 spec/spec_helper.rb