Sha256: 6d11d4b064caf77fd64084e2954623411c0567da0c900ed151707b46e05fa52b

Contents?: true

Size: 972 Bytes

Versions: 15

Compression:

Stored size: 972 Bytes

Contents

require 'capybara-webkit'
require 'capybara/mechanize/cucumber'
require 'bigbluebutton_bot'

# Load the environment in the gem folders, not in the rails_app
# Load the factories in the gem spec/factories folder
require 'factory_girl'
require 'forgery'
Dir["#{ File.dirname(__FILE__)}/../../../factories/*.rb"].each { |f| require f }

# Found at: http://www.emmanueloga.com/2011/07/26/taming-a-capybara.html
# Big Fat Hack (TM) so the ActiveRecord connections are shared across threads.
# This is a variation of a hack you can find all over the web to make
# capybara usable without having to switch to non transactional
# fixtures.
# http://groups.google.com/group/ruby-capybara/browse_thread/thread/248e89ae2acbf603/e5da9e9bfac733e0
# https://groups.google.com/forum/#!msg/ruby-capybara/JI6JrirL9gM/R6YiXj4gi_UJ
Thread.main[:activerecord_connection] = ActiveRecord::Base.retrieve_connection
def (ActiveRecord::Base).connection
  Thread.main[:activerecord_connection]
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
bigbluebutton_rails-3.0.0 spec/rails_app/features/support/env_custom.rb
bigbluebutton_rails-2.3.0 spec/rails_app/features/support/env_custom.rb
bigbluebutton_rails-2.2.0 spec/rails_app/features/support/env_custom.rb
bigbluebutton_rails-2.1.0 spec/rails_app/features/support/env_custom.rb
bigbluebutton_rails-2.0.0 spec/rails_app/features/support/env_custom.rb
bigbluebutton_rails-1.3.0.mweb1 spec/rails_app/features/support/env_custom.rb
bigbluebutton_rails-1.4.0 spec/rails_app/features/support/env_custom.rb
bigbluebutton_rails-1.4.0.beta1 spec/rails_app/features/support/env_custom.rb
bigbluebutton_rails-1.3.0 spec/rails_app/features/support/env_custom.rb
bigbluebutton_rails-1.3.0.beta1 spec/rails_app/features/support/env_custom.rb
bigbluebutton_rails-1.2.0 spec/rails_app/features/support/env_custom.rb
bigbluebutton_rails-1.1.0 spec/rails_app/features/support/env_custom.rb
bigbluebutton_rails-1.0.0 spec/rails_app/features/support/env_custom.rb
bigbluebutton_rails-0.1.1 spec/rails_app/features/support/env_custom.rb
bigbluebutton_rails-0.1.0 spec/rails_app/features/support/env_custom.rb