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:
parent
059fd430ba
commit
775c8dcde2
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue