1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Run RSpec matchers tests with rack_test

This commit is contained in:
Thomas Walpole 2018-04-13 11:16:17 -07:00
parent 059fd430ba
commit 775c8dcde2

View file

@ -1,6 +1,7 @@
# frozen_string_literal: true
require 'spec_helper'
require 'rspec/shared_spec_matchers'
module TestSessions
RackTest = Capybara::Session.new(:rack_test, TestApp)
@ -19,6 +20,8 @@ Capybara::SpecHelper.run_specs TestSessions::RackTest, "RackTest", capybara_skip
]
RSpec.describe Capybara::Session do
include_examples Capybara::RSpecMatchers, TestSessions::RackTest, :rack_test
context 'with rack test driver' do
before do
@session = TestSessions::RackTest