Solution to Regex Too Big Problem?

14 views
Skip to first unread message

ericindc

unread,
Dec 2, 2010, 12:37:32 PM12/2/10
to pickle
Is Pickle close to a solution for the "regex too big problem"? I've
read some of the threads that give various suggestions on setting
capture_model and capture_predicate, but I'm still seeing a bunch of
odd behavior.

For instance...


The model: 'on the' is not known in this scenario. Use #create_model
to create, or #find_model to find, and store a reference in this
scenario. (Pickle::Session::ModelNotKnownError)
./features/step_definitions/pickle_steps.rb:58:in `/^(.*?) should be
(.*?)(?:'s)? (\w+)$/'
features/authentication/registration.feature:24:in `Then I should be
on the homepage'


And... (Given a country exists works, adding the "with...fields"
breaks)


You can implement step definitions for undefined steps with these
snippets:

Given /^a country exists with printable_name "([^"]*)"$/ do |arg1|
pending # express the regexp above with the code you wish you had
end
Reply all
Reply to author
Forward
0 new messages