[rspec-users] Accessing the model class from within an rspec-rails spec

2008-10-28 Thread Cameron Booth
Hi everybody, New to the list, so apologies if this has been answered elsewhere, but I didn't find it. I'm trying to build up a plugin of useful rspec macros for rails development, eg. things like: it_should_return_success it_should_redirect_to { some_url } I'm basing my ideas off of some stuff

[rspec-users] -l command line option broken?

2008-10-28 Thread Lenny Marks
On Tue, Oct 28, 2008 at 12:31 PM, Lenny Marks wrote: > Ooops. I meant the -l option not -n. > > It seems that '-l' command line option for rspec stopped working as of > rspec 1.1.3. It's been working for me. I wrote a Vim script that runs the current spec (in whatever window it might be

Re: [rspec-users] Dreading Controller Specs

2008-10-28 Thread Jonathan Linowes
On Oct 22, 2008, at 4:32 PM, Pat Maddox wrote: I think any app with a rich domain model benefits from a service layer that uses that model. When building Rails apps, stuff is relatively simple and the controllers *are* the service layer. That's how I think of it, anyway. Most of the time

[rspec-users] Should acceptance tests be run against a production environment?

2008-10-28 Thread Pat Maddox
When you do end-to-end acceptance testing with Selenium, I think it should be run against a production environment. Not THE production environment, mind you, but simply a new Rails app running with RAILS_ENV=production. Also, transactional fixtures should be turned off. This is so that the app r

[rspec-users] -l command line option broken?

2008-10-28 Thread Lenny Marks
Sorry for not replying to the thread but I'm not getting any mail from rspec-users right now for whatever reason. It looks like it is an issue specific to jruby. With rspec-1.1.11 and jruby-1.4 #linenumber_spec.rb describe "line number" do it "should be example one" do true.should be

[rspec-users] -l command line option broken?

2008-10-28 Thread Lenny Marks
Ooops. I meant the -l option not -n. It seems that '-l' command line option for rspec stopped working as of rspec 1.1.3. I think this may be related to why I can't get NetBeans to run focussed specs anymore. Does this work for others? I'm using jruby but I don't think that's the issue. ht

Re: [rspec-users] Gems installation

2008-10-28 Thread Juanma Cervera
Thanks Mark That was the problem Mark Thomson wrote: > The webrat gem works for me. Do you have "require 'webrat'" in your > features/steps/env.rb file? > > Mark. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyf

Re: [rspec-users] Gems installation

2008-10-28 Thread Matt Wynne
Last time I looked, webrat is only patched in when you're running with RAILS_ENV == "test". Are you definitely doing that? On 27 Oct 2008, at 15:28, Mark Thomson wrote: The webrat gem works for me. Do you have "require 'webrat'" in your features/steps/env.rb file? Mark. Juanma Cervera w