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

23 commits

Author SHA1 Message Date
Thomas Walpole
f98c699a4c Support filter block with current_path assertions and expectations 2020-10-05 22:59:25 -07:00
eileencodes
1b0dfa40f7
Fix Ruby 2.7 warning in minitest assert_text
In our application at GitHub we were seeing a warning coming from
`assert_text` on the latest version and building the source from master.

Warning we were seeing:

```
/vendor/gems/2.7.1/ruby/2.7.0/gems/capybara-3.32.2/lib/capybara/minitest.rb:56: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/vendor/gems/2.7.1/ruby/2.7.0/gems/capybara-3.32.2/lib/capybara/minitest.rb:56:in `assert_text'
```

The warning is only visible when `assert_text` is delegated from
minitest which is why I've updated the minitest_spec.rb file to include
an argument. I was unable to see or reproduce this warning in the assert
text test.

I don't really get why `ruby2_keywords` wasn't adequate for this change
but from my testing my changes work in Ruby 2.6 and 2.7 and fix the
warning in 2.7.
2020-06-15 10:01:18 -04:00
Kate Travers
f05a2a033a
Update Capybara::Minitest::Assertion docs (#2310)
Update/Fix Capybara::Minitest::Assertion docs
2020-02-10 07:44:33 -08:00
Thomas Walpole
a76a35fbc8 Fix Ruby 2.7 deprecation warnings 2019-12-29 14:37:23 -08:00
Masafumi Koba
6dfe0e473e
Use @see tag of YARD instead of plain text "see"
Current doc: <http://www.rubydoc.info/gems/capybara/3.26.0/Capybara/Minitest/Assertions>

About `@see` tag: <https://www.rubydoc.info/gems/yard/file/docs/Tags.md#see>

[skip ci]
2019-07-18 11:49:20 +09:00
Thomas Walpole
43ca01252f Add ancestor/sibling assertions and expectations 2019-05-28 17:13:40 -07:00
Masafumi Koba
016fedaae6
Fix broken links on Capybara::Minitest::Assertions API doc
This change is extracted from #2190.
2019-05-22 08:24:51 +09:00
Thomas Walpole
50e0aa5da6 Deprecate assert_style/has_style?/have_style in favor of assert_matches_style/matches_styles?/match_style to match naming convention 2018-12-06 11:12:18 -08:00
Thomas Walpole
f6b2f3adf0 Code cleanup and enable line length cop 2018-11-03 13:03:48 -07:00
Thomas Walpole
c2e11c8a00 Add ...any_of_selectors assertions and matchers to complement all_of/any_of 2018-10-23 11:35:01 -07:00
Thomas Walpole
df804763c9 Add has_style? and associated matchers/assertions 2018-06-23 10:17:05 -07:00
Thomas Walpole
7491e0606f Add test for visit with target - chrome/chromedriver issue 2018-02-28 11:00:39 -08:00
Thomas Walpole
58da796590 Add support for node_wrappers implementing to_capybara_node 2018-02-27 11:37:25 -08:00
Thomas Walpole
24eb7a0702 rubocop driven style cleanup 2018-01-09 16:01:47 -08:00
Thomas Walpole
e68051f6ac Rubocop driven cleanup 2018-01-08 14:39:56 -08:00
Thomas Walpole
cb309a8bea Code cleanup 2018-01-03 09:04:12 -08:00
Thomas Walpole
03092d5c7f Add RSpec matchers for all/none selectors and test minitest versions 2017-12-15 11:00:02 -08:00
Herwin Weststrate
fd98cdd556 Fixed typo in docs of capybara/minitest 2017-09-04 12:38:24 +02:00
Thomas Walpole
21844c783c Raise the correct exeception type for minitest assertions 2017-06-14 12:06:27 -07:00
Matthias Winkelmann
e16ede1278 Typo in doc comment
```refute_chceked_field -> refute_checked_field```
2017-05-27 03:56:18 +02:00
Thomas Walpole
a4a3d6d99c DRY minitest assertions 2017-05-25 11:46:21 -07:00
Thomas Walpole
902a58911d basic documentations [ci skip] 2017-03-06 13:54:11 -08:00
Thomas Walpole
b7e4f8dfc9 Add parity between rspec support and minitest 2017-03-06 12:18:47 -08:00