Re: [rspec-users] Having a problem with new webrat matchers in cucumber 2

2009-03-20 Thread James Byrne
David Chelimsky wrote: > > James - I think this is a good idea. Would you kindly post a ticket to > lighthouse: > > http://rspec.lighthouseapp.com/projects/16211 > > Thanks! ticket #253 -- Posted via http://www.ruby-forum.com/. ___ rspec-users maili

Re: [rspec-users] Having a problem with new webrat matchers in cucumber 2

2009-03-20 Thread Pat Maddox
On Fri, Mar 20, 2009 at 9:53 AM, David Chelimsky wrote: > On Fri, Mar 20, 2009 at 11:23 AM, Pat Maddox wrote: >>> I think, if it is not already on the wiki, that cucumber users might be >>> encouraged to put any local additions to support/env.rb into a separate >>> file like support/local_env.rb.

Re: [rspec-users] Having a problem with new webrat matchers in cucumber 2

2009-03-20 Thread David Chelimsky
On Fri, Mar 20, 2009 at 11:23 AM, Pat Maddox wrote: >> I think, if it is not already on the wiki, that cucumber users might be >> encouraged to put any local additions to support/env.rb into a separate >> file like support/local_env.rb.  Running script/generate cucumber to >> upgrade an existing p

Re: [rspec-users] Having a problem with new webrat matchers in cucumber 2

2009-03-20 Thread David Chelimsky
On Fri, Mar 20, 2009 at 10:52 AM, James Byrne wrote: > James Byrne wrote: >> Aslak Hellesøy wrote: >>> >>> We switched to using response.should contain(text) a while back. This is >>> just a wrapper around Rails' assert_contain, the preferred (I think) way >>> to check for text on a page. > > I am

Re: [rspec-users] Having a problem with new webrat matchers in cucumber 2

2009-03-20 Thread Pat Maddox
> I think, if it is not already on the wiki, that cucumber users might be > encouraged to put any local additions to support/env.rb into a separate > file like support/local_env.rb.  Running script/generate cucumber to > upgrade an existing project leaves those with customized env.rb files > with t

Re: [rspec-users] Having a problem with new webrat matchers in cucumber 2

2009-03-20 Thread James Byrne
James Byrne wrote: > Aslak Hellesøy wrote: >> >> We switched to using response.should contain(text) a while back. This is >> just a wrapper around Rails' assert_contain, the preferred (I think) way >> to check for text on a page. I am thinking that you are right. This particular feature was wri

Re: [rspec-users] Having a problem with new webrat matchers in cucumber 2

2009-03-20 Thread James Byrne
Aslak Hellesøy wrote: > > We switched to using response.should contain(text) a while back. This is > just a wrapper around Rails' assert_contain, the preferred (I think) way > to check for text on a page. > > I'm not sure what Cucumber version you're on. > > Aslak V 0.2.0 -- Posted via http:/

Re: [rspec-users] Having a problem with new webrat matchers in cucumber 2

2009-03-20 Thread aslak hellesoy
On Fri, Mar 20, 2009 at 9:45 AM, James Byrne wrote: > I ran script/generate cucumber and since then I am having a few > difficulties. For instance, take this case: > > > When /see (?:an|the) authori(?:s|z)ation required message/ do > Then "I should see \"You are not authori(?:s|z)ed\"" > end >

[rspec-users] Having a problem with new webrat matchers in cucumber 2

2009-03-20 Thread James Byrne
I ran script/generate cucumber and since then I am having a few difficulties. For instance, take this case: When /see (?:an|the) authori(?:s|z)ation required message/ do Then "I should see \"You are not authori(?:s|z)ed\"" end Now gives: And they should see an authorization required mess