Sha256: 4e25c68ff7c487a10d901aeaa4ef18fab800545cc918525e622e217903c133dc

Contents?: true

Size: 1.13 KB

Versions: 19

Compression:

Stored size: 1.13 KB

Contents

ENV["RAILS_ENV"] ||= 'test'

require 'simplecov'
SimpleCov.start if ENV["COVERAGE"]

require File.expand_path("../../spec/dummy/config/environment", __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
require 'thin'

$:.push File.expand_path("../../lib", __FILE__)
require 'websocket-rails'

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir["./spec/support/**/*.rb"].each {|f| require f}
require 'websocket_rails/spec_helpers'
require 'rspec-matchers-matchers'

RSpec.configure do |config|
  # == Mock Framework
  #
  # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
  #
  # config.mock_with :mocha
  # config.mock_with :flexmock
  # config.mock_with :rr
  config.mock_with :rspec

  config.include WebsocketRails::HelperMethods

  # If true, the base class of anonymous controllers will be inferred
  # automatically. This will be the default behavior in future versions of
  # rspec-rails.
  config.infer_base_class_for_anonymous_controllers = false

  config.before(:each) do
    WebsocketRails.config.logger = Logger.new(StringIO.new)
  end

end

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
hkroger-websocket-rails-0.7.1 spec/spec_helper.rb
wwl-websocket-rails-0.7.3 spec/spec_helper.rb
wwl-websocket-rails-0.7.2 spec/spec_helper.rb
wwl-websocket-rails-0.7.1 spec/spec_helper.rb
websocket-rails-0.7.0 spec/spec_helper.rb
websocket-rails-0.6.2 spec/spec_helper.rb
websocket-rails-0.6.1 spec/spec_helper.rb
websocket-rails-0.6.0 spec/spec_helper.rb
websocket-rails-0.5.0 spec/spec_helper.rb
websocket-rails-0.4.9 spec/spec_helper.rb
websocket-rails-0.4.8 spec/spec_helper.rb
websocket-rails-0.4.7 spec/spec_helper.rb
websocket-rails-0.4.6 spec/spec_helper.rb
websocket-rails-0.4.5 spec/spec_helper.rb
websocket-rails-0.4.4 spec/spec_helper.rb
websocket-rails-0.4.3 spec/spec_helper.rb
websocket-rails-0.4.2 spec/spec_helper.rb
websocket-rails-0.4.1 spec/spec_helper.rb
websocket-rails-0.4.0 spec/spec_helper.rb