thanks Ben,
I found that autotest and autospec are running all my specs.
what I need to do is to separate the execution of spec/remote folder
from the rest of the spec files.
this folder must run after (or before) the rest.
I find a way to tell autotest to ignore this folder, by
creating .autotes
thanks! i'll use cucumber list next time.
On Mar 31, 11:09 pm, David Chelimsky wrote:
> On Mar 31, 2010, at 5:13 PM, Oren Golan wrote:
>
>
>
> > I want to verify the href is correct:
> >
> > http://www.com.com";>Website
> >
>
> >
I try to test sinatra app using rspec 2.0.0 and rack-test 0.5.6
it "redirect non-authenticated user to logout page" do
get '/'
last_response.should be_redirect_to('/login)
end
and I get:
undefined method `redirect_to?' for #
where can I find reference/guide for methods I can use in
thanks!
On Oct 20, 4:55 am, David Chelimsky wrote:
> On Oct 19, 2010, at 9:15 PM, oren wrote:
>
> > I try to test sinatra app using rspec 2.0.0 and rack-test 0.5.6
>
> > it "redirect non-authenticated user to logout page" do
> > get '/'
>
I am specing a sinatra app.
it "should send non-valid user to /login" do
get '/'
last_response.headers['Location'].should == '/reports'
end
this is working fine but I would like to know how to convert it to the
new syntax or if there is a better way to do that.
before(:each) { get '/' }
subj
n Oct 21, 1:10 pm, Zach Dennis wrote:
> On Wed, Oct 20, 2010 at 11:19 PM, David Chelimsky wrote:
>
>
>
>
>
>
>
>
>
> > On Oct 20, 2010, at 9:56 PM, oren wrote:
>
> > > I am specing a sinatra app.
>
> > > it "should send non-valid us
test
On Jun 12, 9:41 am, Stephen Eley wrote:
> Ben and Rick,
>
> Thanks very much to both of you for the encouraging responses. Your
> reply, Ben, came just in time as I was starting to wonder if I had
> made a complete and irrevocable ass of myself.
>
> On Fri, Jun 12, 2009 at 10:36 AM, Ben Mab
Thank you so much Stephen.
I am ruby and rails beginner (created a simple site so far) that
decided to
dive into rspec and I feel the pains you described.
I decided to start new rails app and do it with rspec (and to only
test my models).
Is there a github project with rspec code that test the m
Thank you so much Stephen.
I am ruby and rails beginner (created a simple site so far) that
decided to
dive into rspec and I feel the pains you described.
I decided to start new rails app and do it with rspec (and to only
test my models).
is there a github project with rspec code that test the mo
Thank you so much Stephen.
I am ruby and rails beginner (created a simple site so far) that
decided to
dive into rspec and I feel the pains you described.
I decided to start new rails app and do it with rspec (and to only
test my models).
Is there a github project with rspec code that test the m
I am reading the post by Fowler, 'Ruby at ThoughtWorks'.
http://martinfowler.com/articl/rubyAtThoughtWorks.html#WasRubyTheRightChoice
He talks about testing with activerecord:
"Right at the beginning of our use of Ruby, there was a debate on how
best to organize testing in the presence of the Act
Awesome presentation, thanks for clarifying it Ben.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
rake and cucumber fails with ruby-1.9.1-p243 and polyglot 0.2.7.
(btw, when commenting the require method (polyglot.rb:56) it's
passing)
rake spec
/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/polyglot-0.2.7/lib/
polyglot.rb:44:in `load': Failed to load /home/oren/misc/borders
I guess it was fixed in 0.2.8 -
http://groups.google.com/group/cukes/browse_thread/thread/4497bae018d49e4f/88afe4037eb338e2?lnk=gst&q=polyglot#88afe4037eb338e2
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rs
When running autotest only 'rake spec' is running
and I want it to run 'rake spec:remote' as well.
How do i achieve that?
thanks
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
any clues?
On Aug 21, 1:13 pm, oren wrote:
> When running autotest only 'rake spec' is running
> and I want it to run 'rake spec:remote' as well.
>
> How do i achieve that?
>
> thanks
> ___
> rspec-users
I want to verify the href is correct:
http://www.com.com";>Website
my step in the cucumber file:
And the "website" class should have "www.happyhour.com"
the step definition:
Then /^the "([^\"]*)" class should have "([^\"]*)"$/ do |link, url|
response.should have_selector(".#{link}") do |
17 matches
Mail list logo