Sha256: 632e52bb5f68c901860d40257b7b0ebf5fb4beaa06745b4729a9c118a3c48e51

Contents?: true

Size: 719 Bytes

Versions: 1

Compression:

Stored size: 719 Bytes

Contents

ENV['RACK_ENV'] = 'test'
require 'capybara'
require 'capybara/cucumber'
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 = :selenium
Capybara.default_wait_time = 5
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

1 entries across 1 versions & 1 rubygems

Version Path
simple_pvr-0.0.3 features/support/env.rb