Sha256: 31aa2a459fcc98028fc02b0bd7cc94f6675a1243b7bc3926ab474ba8793f3caf
Contents?: true
Size: 678 Bytes
Versions: 1
Compression:
Stored size: 678 Bytes
Contents
require "codeclimate-test-reporter" require "byebug" require 'capybara-webkit' require 'capybara/rspec' require 'support/shared_context.rb' CodeClimate::TestReporter.start ENV['RACK_ENV'] = 'development' RSpec.configure do |config| config.disable_monkey_patching! config.include Capybara::DSL end Capybara.javascript_driver = :webkit def match_content(actual, expected) actual_text = actual.respond_to?(:text) ? normalize_whitespace(actual.text) : actual expect(actual_text).to include(expected), <<-EOF expected "#{actual_text}" to have content "#{expected}" EOF end def normalize_whitespace(content) Capybara::Helpers.normalize_whitespace(content) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sqs_web-0.0.2 | spec/spec_helper.rb |