Sha256: 266d6bb487fd2fc854de1967d6b4fab132134cc2e78e4d454a4a1bc062e4a485
Contents?: true
Size: 593 Bytes
Versions: 9
Compression:
Stored size: 593 Bytes
Contents
$:.unshift File.expand_path('..', __FILE__) $:.unshift File.expand_path('../../lib', __FILE__) ENV['RAILS_ENV'] = 'test' require "dummy/config/environment" require 'rspec/rails' require 'webmock/rspec' require 'wiselinks' require 'coveralls' Coveralls.wear! require 'capybara/rspec' require 'capybara/rails' Capybara.app = Dummy::Application require 'factory_girl' FactoryGirl.find_definitions RSpec::Matchers::define :have_meta do |name| match do |page| puts Capybara.string(page.body) Capybara.string(page.body).has_selector?(:xpath, "//head/meta[@name='#{name}']") end end
Version data entries
9 entries across 9 versions & 2 rubygems