This is giving me an error:

When /?:(log|sign)?:(i|o)n success message/ do
  Then "welcome message"
end

To the effect that:

/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require':
./features/components/login/step_definitions/login_steps.rb:21: invalid
regular expression; there's no previous pattern, to which '?' would
define cardinality at 1: /?:(am|is) not ?:(logg|sign)ed ?:(i|o)n/
(SyntaxError)
./features/components/login/step_definitions/login_steps.rb:25: invalid
regular expression; there's no previous pattern, to which '?' would
define cardinality at 1: /?:(log|sign) ??:(i|o)n request message/
./features/components/login/step_definitions/login_steps.rb:41: invalid
regular expression; there's no previous pattern, to which '?' would
define cardinality at 1: /?:(log|sign)?:(i|o)n success message/     from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'


I would appreciate it very much if someone could tell me what i am doing
wrong here.
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to