Sha256: bb3abddc7d01fa293b99ac78791fc19373f9e1a88ceab778d427b512fe02ed34

Contents?: true

Size: 721 Bytes

Versions: 8

Compression:

Stored size: 721 Bytes

Contents

begin
  require "pry"
rescue LoadError
  nil
end

require "bundler/setup"
require "webmock/rspec"
require "rspec/its"
require "timecop"
require "tempfile"
require "evil/client"
require "evil/client/rspec"

require_relative "support/fixtures_helper"

RSpec.configure do |config|
  config.order = :random
  config.filter_run focus: true
  config.run_all_when_everything_filtered = true

  config.before(:each) do
    # Stub all requests using webmock
    stub_request(:any, //)
    # Prepare the Test namespace for constants defined in specs
    module Test; end
    # Load translations
    I18n.load_path += Dir["spec/fixtures/locales/*.yml"]
  end

  config.after(:each) do
    Object.send :remove_const, :Test
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
evil-client-3.0.4 spec/spec_helper.rb
evil-client-3.0.3 spec/spec_helper.rb
evil-client-3.0.2 spec/spec_helper.rb
evil-client-3.0.1 spec/spec_helper.rb
evil-client-3.0.0 spec/spec_helper.rb
evil-client-2.1.1 spec/spec_helper.rb
evil-client-2.1.0 spec/spec_helper.rb
evil-client-2.0.0 spec/spec_helper.rb