Sha256: 72e392df7a4a2dcf268c48084bafa8ebe83dbad4aa3b267d4aa32d21c6c7a226

Contents?: true

Size: 1.39 KB

Versions: 2

Compression:

Stored size: 1.39 KB

Contents

require 'rubygems'

# Configure Rails Envinronment
ENV["RAILS_ENV"] = "test"

if RUBY_VERSION >= "1.9"
  require 'simplecov'
  SimpleCov.start 'rails'
end

require File.expand_path("../rails_app/config/environment", __FILE__)
require "rspec/rails"
require 'shoulda/matchers/integrations/rspec'
require "shoulda-matchers"

# To test generators
require "generator_spec/test_case"
require "generators/bigbluebutton_rails/install_generator"
require "generators/bigbluebutton_rails/views_generator"

# Disable all external HTTP requests by default
require 'webmock/rspec'
WebMock.disable_net_connect!(allow_localhost: true)

ActionMailer::Base.delivery_method = :test
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.default_url_options[:host] = "test.com"

Rails.backtrace_cleaner.remove_silencers!

# Configure capybara for integration testing
#require "capybara/rails"
#Capybara.default_driver   = :rack_test
#Capybara.default_selector = :css

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

# Load Factories
require 'factory_girl'
require 'forgery'
Dir["#{ File.dirname(__FILE__)}/factories/*.rb"].each { |f| require f }

RSpec.configure do |config|
  config.infer_spec_type_from_file_location!
  config.mock_with :rspec
  config.use_transactional_fixtures = true
  config.include RSpec::Rails::ViewRendering
  config.include FactoryGirl::Syntax::Methods
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bigbluebutton_rails-2.1.0 spec/spec_helper.rb
bigbluebutton_rails-2.0.0 spec/spec_helper.rb