mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
User ordered minitest tests to work-around seed not being default set anymore
This commit is contained in:
parent
54fa362ee2
commit
b8705059b1
2 changed files with 9 additions and 1 deletions
|
|
@ -15,6 +15,10 @@ class MinitestTest < Minitest::Test
|
|||
Capybara.reset_sessions!
|
||||
end
|
||||
|
||||
def self.test_order
|
||||
:sorted
|
||||
end
|
||||
|
||||
def test_assert_text
|
||||
assert_text('Form', normalize_ws: false)
|
||||
assert_no_text('Not on the page')
|
||||
|
|
@ -157,7 +161,7 @@ RSpec.describe 'capybara/minitest' do
|
|||
output = StringIO.new
|
||||
reporter = Minitest::SummaryReporter.new(output)
|
||||
reporter.start
|
||||
MinitestTest.run reporter, {}
|
||||
MinitestTest.run reporter, { }
|
||||
reporter.report
|
||||
expect(output.string).to include('22 runs, 53 assertions, 0 failures, 0 errors, 1 skips')
|
||||
end
|
||||
|
|
|
|||
|
|
@ -16,6 +16,10 @@ class MinitestSpecTest < Minitest::Spec
|
|||
Capybara.reset_sessions!
|
||||
end
|
||||
|
||||
def self.test_order
|
||||
:sorted
|
||||
end
|
||||
|
||||
it 'supports text expectations' do
|
||||
_(page).must_have_text('Form', minimum: 1)
|
||||
_(page).wont_have_text('Not a form')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue