Sha256: a882b24512788ab9085ad74beda78db096c81787b0ddbe1552f55ceaf9a8cef9

Contents?: true

Size: 708 Bytes

Versions: 1

Compression:

Stored size: 708 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'] || 'poltergeist').to_sym # 'selenium' can be nice too
Capybara.default_wait_time = 30

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-1.1.0 features/support/env.rb