Re: [Rails] RSpec fails although it shouldn't

2011-11-07 Thread Gregor Panek
Am 07.11.2011 um 22:22 schrieb Dave Aronson: > On Mon, Nov 7, 2011 at 16:11, Gregor Panek wrote: > >> Am 07.11.2011 um 21:58 schrieb Dave Aronson: > >>> Don't you need to specify an id there? > >> How to do that? I just started to learn how write tests for the application. > > I recommend yo

Re: [Rails] RSpec fails although it shouldn't

2011-11-07 Thread Dave Aronson
On Mon, Nov 7, 2011 at 16:11, Gregor Panek wrote: > Am 07.11.2011 um 21:58 schrieb Dave Aronson: >> Don't you need to specify an id there? > How to do that? I just started to learn how write tests for the application. I recommend you read: http://guides.rubyonrails.org/testing.html (and th

Re: [Rails] RSpec fails although it shouldn't

2011-11-07 Thread Gregor Panek
Am 07.11.2011 um 21:58 schrieb Dave Aronson: > On Mon, Nov 7, 2011 at 15:49, Gregor Panek wrote: > >>describe "GET 'show'" do >>it "returns http success" do >>get 'show' >>response.should be_success >>end >

Re: [Rails] RSpec fails although it shouldn't

2011-11-07 Thread Dave Aronson
On Mon, Nov 7, 2011 at 15:49, Gregor Panek wrote: >        describe "GET 'show'" do >                it "returns http success" do >                        get 'show' >                        response.should be_success >                end Don't you need to specify an id there? Or are you thinki

[Rails] RSpec fails although it shouldn't

2011-11-07 Thread Gregor Panek
Hi all, i wrote a Rspec test for my controller and it fails although it should pass. Here is my Rspec test: require 'spec_helper' describe UsersController do render_views describe "GET 'show'" do it "returns http success" do get 'show'