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
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
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
>
> 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)
>
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
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
>
> 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
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
--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