[rspec-users] [rspec] How to pass route parameters to post method?

2009-06-02 Thread Evgeny Bogdanov
Hello, I am trying to spec an action in a controller, and rspec doesn't find a route. It seems that problem is in ":viewtype". If I change a line "/:viewtype/asset/add" into "/context/asset/add" in routes it works. I tried also post "/context/asset/add", no luck. Could you please let me know how

Re: [rspec-users] Cucumber vs Rails Fixtures

2009-06-02 Thread Wolfram Arnold
>> How do I actually use real, pre-existing Rails fixtures, the same as >> the unit tests use? For familiarity? What I was missing is the regular use of fixtures as in rspec or test unit, like so: u = users(:bob) u.email = "aaa" u.should_not be_valid This link > > http://wiki.github.com/aslak

Re: [rspec-users] Cucumber vs Rails Fixtures

2009-06-02 Thread Wolfram Arnold
I've updated http://wiki.github.com/aslakhellesoy/cucumber/fixtures accordingly. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] autospec runs failing specs forever in endless loop

2009-06-02 Thread Jarmo Pertman
Ok. I've created failing example. Just create project directory and spec directory into it and add there one spec file: describe "autospec" do it "fails" do "hi".should eql("hello") end end It fails, but for autotest it is still green (thus making growl and snar

Re: [rspec-users] autospec runs failing specs forever in endless loop

2009-06-02 Thread David Chelimsky
On Tue, Jun 2, 2009 at 11:07 AM, Jarmo Pertman wrote: > Ok. I've created failing example. > > Just create project directory and spec directory into it and add there > one spec file: > > describe "autospec" do > >        it "fails" do >                "hi".should eql("hello") >        end > > end >

Re: [rspec-users] autospec runs failing specs forever in endless loop

2009-06-02 Thread Jarmo Pertman
Done at https://rspec.lighthouseapp.com/projects/5645-rspec/tickets/832-autotest-not-detecting-failing-examples-correctly-when-matcher-outputs-multiple-lines-of-information I started even before you've replied, because that bugged me too much :) Jarmo On Jun 2, 7:50 pm, David Chelimsky wrote: >