Sha256: 9a64c22a2da5e6ab16a944891f9bdb3d56288ba8d847e1d811ea3a2fe7604fe3
Contents?: true
Size: 1.06 KB
Versions: 3
Compression:
Stored size: 1.06 KB
Contents
require 'rubygems' require 'bundler/setup' require 'evergreen' require 'rspec' require 'capybara/dsl' require 'capybara-webkit' require 'pry' require 'coveralls' Coveralls.wear! TEST_DRIVER = :webkit Evergreen.root = File.expand_path('suite1', File.dirname(__FILE__)) Capybara.app = Evergreen::Application Capybara.default_driver = TEST_DRIVER module EvergreenMatchers class PassSpec # :nodoc: def matches?(actual) @actual = actual @runner = Evergreen::Runner.new(StringIO.new).spec_runner(@actual) @runner.passed? end def failure_message "expected #{@actual.name} to pass, but it failed with:\n\n#{@runner.failure_messages}" end def negative_failure_message "expected #{@actual.name} not to pass, but it did" end end def pass PassSpec.new end end RSpec.configure do |config| config.include EvergreenMatchers config.before do Capybara.reset_sessions! Evergreen.use_defaults! Evergreen.root = File.expand_path('suite1', File.dirname(__FILE__)) Evergreen.driver = TEST_DRIVER end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
evergreen-1.1.3 | spec/spec_helper.rb |
evergreen-1.1.2 | spec/spec_helper.rb |
evergreen-1.1.0 | spec/spec_helper.rb |