Sha256: dc2b81abd33ee1a9a91fd5a9b033baebb4d9815cba10b4bb9b7df8688186af69

Contents?: true

Size: 766 Bytes

Versions: 28

Compression:

Stored size: 766 Bytes

Contents

require 'rails/all'

module RSpecRails
  class Application < ::Rails::Application
  end
end

require 'rspec/rails'
require 'ammeter/init'

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

class RSpec::Core::ExampleGroup
  def self.run_all(reporter=nil)
    run(reporter || RSpec::Mocks::Mock.new('reporter').as_null_object)
  end
end

RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.filter_run :focus
  config.run_all_when_everything_filtered = true
  config.before(:each) do
    @real_world = RSpec.world
    RSpec.instance_variable_set(:@world, RSpec::Core::World.new)
  end
  config.after(:each) do
    RSpec.instance_variable_set(:@world, @real_world)
  end
  config.order = :random
end

Version data entries

28 entries across 23 versions & 5 rubygems

Version Path
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rspec-rails-2.13.0/spec/spec_helper.rb
rspec-rails-2.99.0.beta1 spec/spec_helper.rb
rspec-rails-2.14.0 spec/spec_helper.rb
rspec-rails-2.13.1 spec/spec_helper.rb
rspec-rails-2.13.0 spec/spec_helper.rb
rspec-rails-2.12.2 spec/spec_helper.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/spec_helper.rb
rspec-rails-2.12.1 spec/spec_helper.rb
rspec-rails-2.12.0 spec/spec_helper.rb
rspec-rails-2.11.4 spec/spec_helper.rb
gem_repackager-0.1.0 support/gems/rspec-rails-2.11.0/spec/spec_helper.rb
rspec-rails-2.11.0 spec/spec_helper.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/spec_helper.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/spec_helper.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/spec_helper.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/spec_helper.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/spec_helper.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/spec_helper.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/spec_helper.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/spec_helper.rb