Re: [rspec-users] Troubles building rspec gem locally:

2009-08-04 Thread Railsmaniac
It builds successfully. Will also test it on ruby 1.9. On Aug 3, 1:54 pm, David Chelimsky wrote: > On Mon, Aug 3, 2009 at 3:59 AM, Railsmaniac wrote: > > Can't build gem with rake gem command. Here's what i've got: > > > nat-laptop:rspec railsmaniac$ rake gem > > (in /Users/railsmaniac/Projects/r

[rspec-users] A passing test that I expected be a fail - any suggestions please?

2009-08-04 Thread kendog
Just started to learn the basics of rspec. Before doing anything serious I wanted to get to know the set-up and commands to run tests. I'm pretty sure that is all OK now with respect to gems and my test environment. It will run the tests but it seems to get the wrong answer. I have a controller wi

Re: [rspec-users] Loading webrat when installed as a plugin

2009-08-04 Thread David Chelimsky
On Mon, Aug 3, 2009 at 4:00 PM, Marcelo de Moraes Serpa wrote: > Hello list, > > When installing Webrat as a plugin, do I need to change the "require > 'webrat'" to point to the absolute directory in which webrat is > installed in the vendor/plugins folder or is there any implicit logic > in the re

Re: [rspec-users] A passing test that I expected be a fail - any suggestions please?

2009-08-04 Thread David Chelimsky
On Tue, Aug 4, 2009 at 4:47 AM, kendog wrote: > Just started to learn the basics of rspec. > Before doing anything serious I wanted to get to know the set-up and > commands to run tests. > I'm pretty sure that is all OK now with respect to gems and my test > environment. It will run the tests but i

[rspec-users] render_template with a non-standard view name

2009-08-04 Thread Michele Stuart
Hi, all. I am perplexed. The problem I'm having seems to be related to rendering a "non-standard" view. In our controllers, the 'new' and 'edit' actions share a template, as shown here. Controller: def new @location = Location.new respond_to do |format| format.html { render :tem

Re: [rspec-users] stubbing association methods in controller spec

2009-08-04 Thread David Chelimsky
On Thu, Jul 30, 2009 at 6:13 PM, norm wrote: > I have two models: >  Student has_many=>:grad_surveys >    and >  GradSurvey belongs_to=>:student > > I am testing the GradSurveysController#update method with > >  it "should only allow update if the correct token is presented" do >   �...@params = {:

Re: [rspec-users] render_template with a non-standard view name

2009-08-04 Thread David Chelimsky
On Tue, Aug 4, 2009 at 11:32 AM, Michele Stuart wrote: > Hi, all. > > I am perplexed. The problem I'm having seems to be related to > rendering a "non-standard" view. In our controllers, the 'new' and > 'edit' actions share a template, as shown here. > > Controller: > >  def new >   �...@location =

Re: [rspec-users] render_template with a non-standard view name

2009-08-04 Thread Michele Stuart
Hi. No joy with integrate_views either, although the error does change. I discovered that the old new and and edit templates still existed. So, with integrate_views and with the new.html.erb file on the filesystem, we get this. 'LocationsController handling POST /cms/locations with failed save sh

Re: [rspec-users] stubbing association methods in controller spec

2009-08-04 Thread norm
that worked! thanks David, your help is much appreciated ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Loading webrat when installed as a plugin

2009-08-04 Thread Marcelo de Moraes Serpa
David, thanks for the reply! > Rails handles this for you implicitly. Are you having a problem? Yes. I don't have Cucumber, rspec, rspec-rails nor webrat installed as gems system-wide. I only have them as plugins in the app. When I try to run a sample feature with script/cucumber, I get the follo