Re: [rspec-users] Noob syntax questions regarding rspec book...

2009-07-08 Thread internetchris
In addition - Ben thanks for the link, I just checked it out. Rubular seems like an awesome little tool and I will bookmark the page. I really appreciate all of the help and hope I can return the favor one day. Thanks! Chris On Jul 8, 10:43 pm, internetchris wrote: > Hey everyone, > > I apprec

Re: [rspec-users] Noob syntax questions regarding rspec book...

2009-07-08 Thread internetchris
Hey everyone, I appreciate the replies. After I posted I realized I was looking at ruby code. It seems this is where my learning curve is going to take a leap. I understand Rails, I am starting to understand Rspec and Cucumber, and I understand programming. This is my second language, but it's the

Re: [rspec-users] Routes helpers work differently from helper examples compared to page rendering

2009-07-08 Thread Ed Ruder
I don't think that ticket applies to my problem--as I read it, https://rspec.lighthouseapp.com/projects/5645/tickets/843 is about enhancing RSpec with additional routing tests/specs. My issue is that in the context of a helper spec, when calling route helpers (_url/_path methods) from a helper, a

Re: [rspec-users] loading custom matchers into cucumber

2009-07-08 Thread Joaquin Rivera Padron
> > Spec::Runner.configure do |config| > # rspec should support :type => [:controller, :helper, :view] - but until > it does ... > config.include(Webrat::Matchers, :type => :controller) > config.include(Webrat::Matchers, :type => :helper) > config.include(Webrat::Matchers, :type => :view) >

Re: [rspec-users] loading custom matchers into cucumber

2009-07-08 Thread Joaquin Rivera Padron
hey ben, thanks, your solution works :-) luckily(!) a typo make get me to some prettier way (doing what webrat does), first namescoping the matchers: module MyCustom do module Matchers do Spec::Matchers.define :have_rol do |role| match do |user| user.roles.collect{ |r| r.na

Re: [rspec-users] loading custom matchers into cucumber

2009-07-08 Thread Ben Mabey
Joaquin Rivera Padron wrote: hi there, In a step I need to assert (don't know hoe to translate this into "should" terms) state before keep going, example: Perhaps you need to make an "expectation" instead of an "assert"? :) Given "I have signed up as tom who is an admin" d

Re: [rspec-users] loading custom matchers into cucumber

2009-07-08 Thread Joaquin Rivera Padron
> > hi there, > In a step I need to assert (don't know hoe to translate this into "should" > terms) state before keep going, example: > > Given "I have signed up as tom who is an admin" do |user, role| do > # call some steps to create user tom > > end > oops, sorry that was gone unfinished! G

[rspec-users] loading custom matchers into cucumber

2009-07-08 Thread Joaquin Rivera Padron
hi there, In a step I need to assert (don't know hoe to translate this into "should" terms) state before keep going, example: Given "I have signed up as tom who is an admin" do |user, role| do # call some steps to create user tom end ___ rspec-users

Re: [rspec-users] Cucumber: Running a single feature / scenario

2009-07-08 Thread Pirkka Hartikainen
--line option has been deprecated, use the colon syntax instead. cucumber path/to/file.feature --line 33 has become cucumber path/to/file.feature:33 PS. updating this thread because of a high google page rank, it's the first search result for "cucumber running a single scenario" -- Posted vi