Sha256: 4af980ceb5bf1f6bee46368e8dbd88de045d8ba11dc14d2a90fcce27321a108b

Contents?: true

Size: 863 Bytes

Versions: 18

Compression:

Stored size: 863 Bytes

Contents

require 'rubygems'
require 'bundler'
require 'chozo'

def setup_rspec
  require 'rspec'
  require 'json_spec'
  require 'webmock/rspec'

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

  RSpec.configure do |config|
    config.include Ridley::SpecHelpers
    config.include JsonSpec::Helpers

    config.mock_with :rspec
    config.treat_symbols_as_metadata_keys_with_true_values = true
    config.filter_run focus: true
    config.run_all_when_everything_filtered = true

    config.before(:all) do
      Ridley.logger = nil
      Celluloid.logger = nil
    end

    config.before(:each) do
      clean_tmp_path
    end
  end
end

if mri? && ENV['CI'] != 'true'
  require 'spork'

  Spork.prefork do
    setup_rspec
  end

  Spork.each_run do
    require 'ridley'
  end
else
  require 'ridley'
  setup_rspec
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
ridley-0.10.2 spec/spec_helper.rb
ridley-0.9.1 spec/spec_helper.rb
ridley-0.10.1 spec/spec_helper.rb
ridley-0.11.0.rc1 spec/spec_helper.rb
ridley-0.10.0 spec/spec_helper.rb
ridley-0.10.0.rc3 spec/spec_helper.rb
ridley-0.10.0.rc2 spec/spec_helper.rb
ridley-0.10.0.rc1 spec/spec_helper.rb
ridley-0.9.0 spec/spec_helper.rb
ridley-0.8.6 spec/spec_helper.rb
ridley-0.8.5 spec/spec_helper.rb
ridley-0.8.3 spec/spec_helper.rb
ridley-0.8.2 spec/spec_helper.rb
ridley-0.8.1 spec/spec_helper.rb
ridley-0.8.0 spec/spec_helper.rb
ridley-0.7.0 spec/spec_helper.rb
ridley-0.7.0.rc4 spec/spec_helper.rb
ridley-0.7.0.rc3 spec/spec_helper.rb