Sha256: 5db54e5ce1b701c913508d45fa9987937c9a6ac060445e18a4d411ed573b201f

Contents?: true

Size: 787 Bytes

Versions: 2

Compression:

Stored size: 787 Bytes

Contents

ENV['RACK_ENV'] = 'test'
require 'capybara'
require 'capybara/cucumber'
require 'capybara/poltergeist'
require 'rspec'

require File.join(File.dirname(__FILE__), '../../lib/simple_pvr')

SimplePvr::PvrInitializer.setup_for_integration_test
SimplePvr::RecordingPlanner.reload

Capybara.app = eval "Rack::Builder.new {( " + SimplePvr::PvrInitializer.rack_maps_file + ")}"
Capybara.default_driver = (ENV['capybara_driver'] || 'selenium').to_sym
Capybara.default_wait_time = 30
Capybara.ignore_hidden_elements = true # AngularJS shows and hides elements all the time, so this is important

class SimplePvrWorld
  include Capybara::DSL
  include RSpec::Expectations
  include RSpec::Matchers
end

World do
  SimplePvrWorld.new
end

Before do
  SimplePvr::Model::DatabaseInitializer.clear
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_pvr-1.0.0 features/support/env.rb
simple_pvr-0.0.4 features/support/env.rb