Re: [rspec-users] Ruby 1.9 - autospec loadpath problem

2009-07-30 Thread Adrian De la cruz
Oh, forgot to mention that if I uninstall the rspec-rails gem from my Ruby 1.9.1 gem repository, the problem goes away, and I can run the tests in the non-Rails app without problem. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list

Re: [rspec-users] Ruby 1.9 - autospec loadpath problem

2009-07-30 Thread Adrian De la cruz
Hi guys, I'm getting this same error in a Ubuntu 9.04 machine. I have Ruby 1.8.7 installed alongside Ruby 1.9.1. When I'm on Ruby 1.9.1 and try to run the specs on a non-Rails app I get this error: === /usr/local/bin/spec:19:in `load': Is a directory - /usr/

[rspec-users] stubbing association methods in controller spec

2009-07-30 Thread norm
I have two models: Student has_many=>:grad_surveys and GradSurvey belongs_to=>:student I am testing the GradSurveysController#update method with it "should only allow update if the correct token is presented" do @params = {:id=>"1", :token=>"ab56e1b47", :survey=>{}} @mock_grad_s

[rspec-users] [rspec, rails] A quick code review, to help a beginner

2009-07-30 Thread Andy Pearson
Hey List, This is probably a bit cheeky, but I thought it may be worth a try. I have just started a new rails app, which I am going to try and drive with Rspec and Cucumber as best as I can. I have just finished a couple of tests, and a couple of lines of a Model and I was wondering whether I co