Sha256: 358247b5af47029980e47ba3aa3e5b27367a58a507a0aec95c7f981b464c6a52

Contents?: true

Size: 717 Bytes

Versions: 2

Compression:

Stored size: 717 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.read

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

2 entries across 2 versions & 1 rubygems

Version Path
simple_pvr-0.0.2 features/support/env.rb
simple_pvr-0.0.1 features/support/env.rb