Sha256: ded1c97034c1d274ae84f12f4000822dfa56dd7460ca64959028724ccdcdc836
Contents?: true
Size: 440 Bytes
Versions: 1
Compression:
Stored size: 440 Bytes
Contents
# # Look in the page for a h1 tag with the "The dummy app!" text. # module BeTheDummyApp extend RSpec::Matchers::DSL PAGE_TITLE = 'The dummy app!'.freeze matcher :be_the_dummy_app do match do |page| Capybara.string(page.body).has_selector?('h1', text: PAGE_TITLE) end failure_message do |page| "expected #{page.body} to have a h1 tag with the text " \ "\"#{PAGE_TITLE}\" but did not" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_record_migration_ui-0.1.2 | spec/support/be_the_dummy_app_matcher.rb |