Re: [rspec-users] running rake spec:remote

2009-08-28 Thread oren
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

Re: [rspec-users] help me refactor a step for finding href in specific link

2010-04-02 Thread oren
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 > > > > >

[rspec-users] rspec 2 - undefined method `redirect_to?' for #

2010-10-19 Thread oren
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

Re: [rspec-users] rspec 2 - undefined method `redirect_to?' for #

2010-10-20 Thread oren
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 '/' >

[rspec-users] new syntax question and mocking HTTP_AUTHORIZATION

2010-10-20 Thread oren
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

Re: [rspec-users] new syntax question and mocking HTTP_AUTHORIZATION

2010-10-21 Thread oren
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

Re: [rspec-users] The problem with learning RSpec

2009-06-27 Thread oren
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

Re: [rspec-users] The problem with learning RSpec

2009-06-27 Thread oren
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

Re: [rspec-users] The problem with learning RSpec

2009-06-27 Thread oren
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

Re: [rspec-users] The problem with learning RSpec

2009-06-27 Thread oren
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

[rspec-users] Testing with activerecord at ThoughtWorks (Stubbing vs real DB)

2009-06-27 Thread oren
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

Re: [rspec-users] Testing with activerecord at ThoughtWorks (Stubbing vs real DB)

2009-06-28 Thread oren
Awesome presentation, thanks for clarifying it Ben. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] rake and cucumber fails with ruby-1.9.1-p243 and polyglot 0.2.7

2009-08-18 Thread oren
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

Re: [rspec-users] rake and cucumber fails with ruby-1.9.1-p243 and polyglot 0.2.7

2009-08-18 Thread oren
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

[rspec-users] running rake spec:remote

2009-08-21 Thread oren
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

Re: [rspec-users] running rake spec:remote

2009-08-25 Thread oren
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

[rspec-users] help me refactor a step for finding href in specific link

2010-03-31 Thread Oren Golan
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 |