[rspec-users] Does rspec 2 have fixture support?

2010-05-07 Thread Si
Am I right in thinking that rspec 2, being based on Micronaut, has no Rails fixture support? I tried to get my specs running under rspec-* 2.0.0.beta.8 and Rails 3 edge, but no dice on the fixture front. I've tried controller and request specs in a new app, just in case. Same story. Looking over

[rspec-users] RSpec newb - why is my negative test not passing?

2010-05-07 Thread Jferg
Why won't this test work? I am trying to use RSpec to drive a negative test where my code will throw an exception which it does however, the test does not pass. It fails due to my exception. However, I am using should raise_exception: --- describe "Making non-existent url ti

Re: [rspec-users] Good practices on spec'ing views?

2010-05-07 Thread J. B. Rainsberger
Stefan Kanev wrote: I've been doing RSpec for more than a year by now, yet I cannot help but feel that I've never got a single view spec right. I can see that I have very few view specs and that my views tend be a lot messier than everything else. I've read the chapter in the RSpec book about sp

Re: [rspec-users] Rspec model generation problem

2010-05-07 Thread Amit Kulkarni
Amit Kulkarni wrote: > Hello, > I am currently working on Ubuntu machine in which there is already a > spec file generated which has some models > So i just updated by entering the command "ruby script/generate rspec" > Now when i try to generate rspec model then it shows error as > > "The name 'U

[rspec-users] Rspec model generation problem

2010-05-07 Thread Amit Kulkarni
Hello, I am currently working on Ubuntu machine in which there is already a spec file generated which has some models So i just updated by entering the command "ruby script/generate rspec" Now when i try to generate rspec model then it shows error as "The name 'User' is either already used in your

[rspec-users] Rspec model generate problem

2010-05-07 Thread Amit Kulkarni
Hello, I am currently working on Ubuntu machine in which there is already a spec file generated which has some models So i just updated by entering the command "ruby script/generate rspec" Now when i try to generate rspec model then it shows error as "The name 'User' is either already used in your

Re: [rspec-users] Expecting an array but getting a string using webrat

2010-05-07 Thread David Chelimsky
On May 4, 2010, at 2:51 PM, Frank wrote: > Hi Guys, > > I'm new to webrat and I've encountered a problem. I have a nested form > that I've created using the steps similar to the Rails Casts > http://railscasts.com/episodes/75-complex-forms-part-3 > > As context, I have a form for programming ex

Re: [rspec-users] Expecting an array but getting a string using webrat

2010-05-07 Thread David Chelimsky
On May 7, 2010, at 7:35 AM, David Chelimsky wrote: > > On May 4, 2010, at 2:51 PM, Frank wrote: > >> Hi Guys, >> >> I'm new to webrat and I've encountered a problem. I have a nested form >> that I've created using the steps similar to the Rails Casts >> http://railscasts.com/episodes/75-complex

Re: [rspec-users] Rspec beta8: helper methods issues

2010-05-07 Thread David Chelimsky
On May 7, 2010, at 5:59 AM, andrea longhi wrote: > Hello everybody, > > I am experiencing the following problems, I googled quickly but I > couldn't find any documentation or solution to those issues: > > 1) the generator rails g rspec:helper does nothing; See Known Issues on http://github.com

Re: [rspec-users] Rspec beta8: helper methods issues

2010-05-07 Thread Jamie D
from: http://github.com/rspec/rspec-rails - no helper specs (yet) - no routing specs (yet) - only works with ActiveRecord (for now) On 7 May 2010 11:59, andrea longhi wrote: > Hello everybody, > > I am experiencing the following problems, I googled quickly but I > couldn't find any d

Re: [rspec-users] and_return question

2010-05-07 Thread Phillip Koebbe
On 2010-05-06 9:51 PM, David Chelimsky wrote: On May 6, 2010, at 10:09 AM, Phillip Koebbe wrote: Are these two forms theoretically functionally equivalent: 1) car = stub_model(Car) Car.stub(:new).and_return(car) 2) Car.stub(:new).and_return(stub_model(Car)) I ask because I thought they we

[rspec-users] Rspec beta8: helper methods issues

2010-05-07 Thread andrea longhi
Hello everybody, I am experiencing the following problems, I googled quickly but I couldn't find any documentation or solution to those issues: 1) the generator rails g rspec:helper does nothing; 2) there seems to be no way to test helper methods as I used to do... for example the following spec