Sha256: 8a4849fbc8384643237edfd517f680120af10da12c282c5b3a9e3e655a1df34f

Contents?: true

Size: 950 Bytes

Versions: 1

Compression:

Stored size: 950 Bytes

Contents

$LOAD_PATH.unshift File.expand_path('../lib', __dir__)

require 'pokeedex'
require 'webmock/rspec'

Pokeedex.configure do |config|
  config.db_name = 'pokeedex_test.sqlite3'
end

Pokeedex.init

def file_fixture(filename)
  open(File.join(File.dirname(__FILE__), 'fixtures', "#{filename}")).read
end

Dir[File.expand_path(File.join(File.dirname(__FILE__), 'support', '**', '*.rb'))].each { |f| require f }

RSpec.configure do |config|
  config.before(:each) do
    Pokeedex::Database.clean!
    Pokeedex::Database.run_migrations!
  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 = false
  end

  config.filter_run :focus
  config.run_all_when_everything_filtered = true

  config.disable_monkey_patching!

  config.warnings = true

  config.profile_examples = 10

  config.order = :random
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pokeedex-0.1.5 spec/spec_helper.rb