Created
August 7, 2017 16:27
-
-
Save kjlape/c5dbcdd8aebd5017d15a4b55f55d513e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RSpec::Matchers.define :have_field_value do |selector, value:| | |
| match do |page| | |
| page.find(selector).value == value | |
| end | |
| failure_message do | |
| <<-MESSAGE | |
| expected #{selector} to have value #{value}, but it was not. | |
| MESSAGE | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment