Re: [rspec-users] outside-in BDD vs writing examples up front

2008-02-07 Thread Edvard Majakari
This is a short reply, but thinking about it a bit deeper, I have to agree with Dan. What especially caught my attention was this piece: If you start with a narrow, end-to-end piece of functionality and drill into it from the outside, right through until you have it working, you will find that

Re: [rspec-users] Rspec accessing the wrong id?

2008-02-07 Thread Jarkko Laine
On 6.2.2008, at 11.16, David Currin wrote: Hi, This is probably straightforward to solve. I'm new to rspec so I hope you'll be patient with me. I've created a model method which works in practice, but which rspec is not passing. I'm obviously not going about things in the right way in

Re: [rspec-users] Problems testing rss feed controller.

2008-02-07 Thread David Chelimsky
On Feb 7, 2008 2:27 PM, Rick DeNatale [EMAIL PROTECTED] wrote: I've got a controller which produces an RSS feed, pretty much based on Ryan Bates recent RailsCast. I'm having a heck of a time getting the spec to successfully fetch the feed though. I gave up got it working without a spec, and

[rspec-users] Problems testing rss feed controller.

2008-02-07 Thread Rick DeNatale
I've got a controller which produces an RSS feed, pretty much based on Ryan Bates recent RailsCast. I'm having a heck of a time getting the spec to successfully fetch the feed though. I gave up got it working without a spec, and I'm now trying to back up and get the spec to work. The controller

Re: [rspec-users] Shared examples not reloading in spec_server

2008-02-07 Thread David Chelimsky
On Feb 7, 2008 9:39 AM, Charles Grindel [EMAIL PROTECTED] wrote: I am currently running RSpec 1.1.3 with ZenTest 3.9.1 on Windows XP. I have noticed that shared examples are not being reloaded by spec_server when they have been updated. Below is a simple example that reproduces the problem.

Re: [rspec-users] Problems testing rss feed controller.

2008-02-07 Thread Rick DeNatale
On 2/7/08, David Chelimsky [EMAIL PROTECTED] wrote: On Feb 7, 2008 2:27 PM, Rick DeNatale [EMAIL PROTECTED] wrote: I've got a controller which produces an RSS feed, pretty much based on Ryan Bates recent RailsCast. I'm having a heck of a time getting the spec to successfully fetch the

[rspec-users] Shared examples not reloading in spec_server

2008-02-07 Thread Charles Grindel
I am currently running RSpec 1.1.3 with ZenTest 3.9.1 on Windows XP. I have noticed that shared examples are not being reloaded by spec_server when they have been updated. Below is a simple example that reproduces the problem. The example code and output is at the location below.

[rspec-users] Can you explain this code to me?

2008-02-07 Thread Pito Salas
I am experimenting with the restful-authentication plug in and I see that it has generated an rspec encantation which I had not seen before: it 'allows signup' do lambda do create_user response.should be_redirect end.should change(User, :count).by(1) end What does the

Re: [rspec-users] Can you explain this code to me?

2008-02-07 Thread David Chelimsky
On Feb 7, 2008 5:26 PM, Pito Salas [EMAIL PROTECTED] wrote: I am experimenting with the restful-authentication plug in and I see that it has generated an rspec encantation which I had not seen before: it 'allows signup' do lambda do create_user response.should be_redirect

[rspec-users] Shared Examples + “initialized c onstant” warnings

2008-02-07 Thread Gerrit Kaiser
Hi List, I'm using rspec's shared example groups in a rails project (rails 2.02, rspec(on_rails) 1.1.3) and I'm getting lots of errors of the following kind when(before) running the specs: (RAILS_ROOT)/vendor/plugins/rspec/lib/spec/extensions/main.rb:78: warning: already initialized

Re: [rspec-users] Can you explain this code to me?

2008-02-07 Thread Jarkko Laine
On 8.2.2008, at 1.26, Pito Salas wrote: I am experimenting with the restful-authentication plug in and I see that it has generated an rspec encantation which I had not seen before: it 'allows signup' do lambda do create_user response.should be_redirect end.should