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

24 commits

Author SHA1 Message Date
Jo Liss
21977817bf Require cleaning up after our specs rather than setting up before
It's easier to catch issues this way.
2012-01-04 19:41:40 +01:00
Jo Liss
a3fae41d93 Make error messages about :text come out unescaped
I looked into 60ed5145 and discovered that Capybara::Query#initialize escapes
options[:text]. I think this is a bit confusing, and it messes up the error
message, so options[:text] is now escaped on the fly in matches_filters?.

Also add tests with blanks in them just to be on the safe side.
2012-01-04 00:35:53 +01:00
Jo Liss
9fd6c85949 Set Capybara.app at spec run time, not at definition time
This bug got triggered on Travis.
2012-01-03 17:51:29 +01:00
Jonas Nicklas
60ed514509 that space is throwing off the regexp somehow 2012-01-03 09:43:32 +01:00
Jordan Elver
962e160f4d Output the number of matches that were expected if called with the count option 2011-12-01 17:14:51 +00:00
Mark Dodwell
9fb05c9c64 add has_text matcher based on Element#text 2011-10-16 16:46:19 -07:00
Hiroshi Saito
e51e47c7d7 description methods for Capybara::RSpecMatchers 2011-04-26 19:02:14 +09:00
Jonas Nicklas
31f1ac3ccb Separate DSL out into a module
Otherwise we were including a lot of classes in
the namespace of the object that Capybara was
being included in. This could lead to clashes with
some common class names.
2011-04-11 06:58:42 +01:00
Jonas Nicklas and Nicklas Ramhöj
7fb5a1da3a Merge remote branch 'cavalle/object_pollution'
Conflicts:
	spec/rspec/features_spec.rb
2011-03-31 18:05:58 +02:00
Jonas Nicklas and Nicklas Ramhöj
251826ff79 Merge branch 'caller' of https://github.com/cavalle/capybara into cavalle-caller 2011-03-31 17:59:12 +02:00
Jonas Nicklas
e9814d70c8 Added have_select and have_table matchers 2011-03-25 10:46:31 +00:00
Jonas Nicklas
6920eae19d Added have_link, have_checked_field and have_unchecked_field matchers 2011-03-25 10:35:59 +00:00
Jonas Nicklas
414b2d983f Have field matcher 2011-03-25 09:54:52 +00:00
Jonas Nicklas
7df9e80233 Remove fancy error messages for now 2011-03-25 09:52:35 +00:00
Luismi Cavalle
d5b5847334 Pass feature caller to describe 2011-03-13 14:31:04 +01:00
Luismi Cavalle
fee2a70220 RSpec DSL should not pollute the Object namespace 2011-03-12 12:44:03 +01:00
Jo Liss
eac66d6b78 Pass options as Hash (not Array) in RSpec matcher (thanks to Mike Mazur) 2011-03-10 19:03:59 +01:00
Jo Liss
cfa26c66ad Removed require 'capybara/rspec/features' from spec (should be pulled in automatically) 2011-03-10 17:36:44 +01:00
Jonas Nicklas and Nicklas Ramhöj
cb8de0c05e Merge branch 'document_text' of https://github.com/scytacki/capybara into scytacki-document_text 2011-02-28 12:56:34 +01:00
Scott Cytacki
17224befe7 Fix document#text
It failed if the default selector was css, and failed with selenium with xpath.  Calling find('.') or find('/') in selenium returns a element that causes errors.  It now calls find(:xpath, '/html') which seems to work everywhere.
2011-02-18 16:29:51 -05:00
Jonas Nicklas
df300e9fbe Better errors for button matcher 2011-02-13 17:46:22 +01:00
Jonas Nicklas
d18787de65 Added have_button matchers 2011-02-13 17:04:13 +01:00
Jonas Nicklas and Nicklas Ramhöj
f4897f890d Added DSL for acceptance tests in RSpec 2011-02-11 14:44:58 +01:00
Jonas Nicklas and Nicklas Ramhöj
f5552dfe42 Move matchers into folder 2011-02-11 14:06:39 +01:00