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

14 commits

Author SHA1 Message Date
ydah
55ff8efc97 Correct Layout/SpaceInsideHashLiteralBraces 2022-09-23 07:34:08 +09:00
Thomas Walpole
b8705059b1 User ordered minitest tests to work-around seed not being default set anymore 2022-07-29 14:56:11 -07:00
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
Thomas Walpole
43ca01252f Add ancestor/sibling assertions and expectations 2019-05-28 17:13:40 -07: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
c2e11c8a00 Add ...any_of_selectors assertions and matchers to complement all_of/any_of 2018-10-23 11:35:01 -07:00
Thomas Walpole
76dc18b369 fix order dependency in tests 2018-08-14 20:21:05 -07:00
Thomas Walpole
919e4df2a8 refute_xxx were only ever supposed to be available when using minitest 2018-07-23 11:17:07 -07:00
Thomas Walpole
e320f5d7fc style updates 2018-07-16 15:04:52 -07:00
Thomas Walpole
df804763c9 Add has_style? and associated matchers/assertions 2018-06-23 10:17:05 -07:00
Thomas Walpole
618dd9ff70 Rubocop driven spec style cleanup 2018-03-01 11:44:55 -08:00
Thomas Walpole
03092d5c7f Add RSpec matchers for all/none selectors and test minitest versions 2017-12-15 11:00:02 -08:00
Thomas Walpole
b7e4f8dfc9 Add parity between rspec support and minitest 2017-03-06 12:18:47 -08:00