Re: [rspec-users] Rendering a view and passing a variable

2007-11-29 Thread David Chelimsky
On Nov 29, 2007 8:44 PM, Olivier Dupuis <[EMAIL PROTECTED]> wrote: > Thanks again David! > > Sorry for the easy question. I should have looked more carefully at the > documentation. Please, no apologies. The docs aren't perfect, so while it's good to know they're there, you should always feel fre

Re: [rspec-users] Rendering a view and passing a variable

2007-11-29 Thread Olivier Dupuis
Thanks again David! Sorry for the easy question. I should have looked more carefully at the documentation. Olivier -Original Message- From: [EMAIL PROTECTED] on behalf of David Chelimsky Sent: Thu 11/29/2007 9:29 PM To: rspec-users Subject: Re: [rspec-users] Rendering a view and passin

Re: [rspec-users] Rendering a view and passing a variable

2007-11-29 Thread Shane Mingins
don't you have to do ... assigns[:language] = @language On 30/11/2007, at 3:29 PM, Olivier Dupuis wrote: Hello all, I have a view which display html based on the value of a variable. Here's the code : <% if @language == 'e' %> <%= link_to "Français", :action => :index, :id => "f" %>

Re: [rspec-users] Rendering a view and passing a variable

2007-11-29 Thread David Chelimsky
On Nov 29, 2007 8:29 PM, Olivier Dupuis <[EMAIL PROTECTED]> wrote: > > > > > Hello all, > > I have a view which display html based on the value of a variable. Here's > the code : > > <% if @language == 'e' %> ><%= link_to "Français", :action => :index, :id => "f" %> > <% end %> > > In my t

[rspec-users] Rendering a view and passing a variable

2007-11-29 Thread Olivier Dupuis
Hello all, I have a view which display html based on the value of a variable. Here's the code : <% if @language == 'e' %> <%= link_to "Français", :action => :index, :id => "f" %> <% end %> In my test, I'm trying to set the value of the variable first, but that just doesn't seem to work :

Re: [rspec-users] [ANN] Webrat 0.1.0 released - Ruby Acceptance Testing for Web applications

2007-11-29 Thread Jonathan Linowes
/me in love :) On Nov 29, 2007, at 12:44 PM, Bryan Helmkamp wrote: > Hey guys, > > We developed this plugin while writing my first real set of RSpec > stories. It's still missing a lot of functionality, but it's useful to > us as is, so I'm shipping 0.1.0. (Patches welcome. :) ) > > Code is ava

Re: [rspec-users] [ANN] Webrat 0.1.0 released - Ruby Acceptance Testing for Web applications

2007-11-29 Thread John W. Long
We've been putting something similar together here: http://faithfulcode.rubyforge.org/svn/plugins/trunk/spec_integration/ It's for integration testing. The README talks about the navigate_to, submit_form, and be_showing methods. -- John Long http://wiseheartdesign.com On Nov 29, 2007, at 12:

Re: [rspec-users] [ANN] Webrat 0.1.0 released - Ruby Acceptance Testing for Web applications

2007-11-29 Thread Pat Maddox
On 11/29/07, Bryan Helmkamp <[EMAIL PROTECTED]> wrote: > Hey guys, > > We developed this plugin while writing my first real set of RSpec > stories. It's still missing a lot of functionality, but it's useful to > us as is, so I'm shipping 0.1.0. (Patches welcome. :) ) > > Code is available at: http:

[rspec-users] [ANN] Webrat 0.1.0 released - Ruby Acceptance Testing for Web applications

2007-11-29 Thread Bryan Helmkamp
Hey guys, We developed this plugin while writing my first real set of RSpec stories. It's still missing a lot of functionality, but it's useful to us as is, so I'm shipping 0.1.0. (Patches welcome. :) ) Code is available at: http://svn.eastmedia.net/public/plugins/webrat/ What do you think? -Br

Re: [rspec-users] Rollbacks, Sqlite3 bug. Has this been reintroduced ?

2007-11-29 Thread sinclair bain
Great ! As always thanks! Cheers! sinclair On Nov 29, 2007 12:12 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Nov 29, 2007 11:06 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On Nov 29, 2007 10:55 AM, sinclair bain <[EMAIL PROTECTED]> wrote: > > > Hey,I just updated from the edge and

Re: [rspec-users] Rollbacks, Sqlite3 bug. Has this been reintroduced ?

2007-11-29 Thread David Chelimsky
On Nov 29, 2007 11:06 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Nov 29, 2007 10:55 AM, sinclair bain <[EMAIL PROTECTED]> wrote: > > Hey,I just updated from the edge and it looks like this _issue_ has > > resurfaced. > > > > Yesterday things were working (stories and specs). > > No code b

Re: [rspec-users] Rollbacks, Sqlite3 bug. Has this been reintroduced ?

2007-11-29 Thread Luis Lavena
On Nov 29, 2007 1:55 PM, sinclair bain <[EMAIL PROTECTED]> wrote: > Hey,I just updated from the edge and it looks like this _issue_ has > resurfaced. > > Yesterday things were working (stories and specs). > No code base changes, only rspec and rspec_on_rails > > After updating today I now need to

Re: [rspec-users] Rollbacks, Sqlite3 bug. Has this been reintroduced ?

2007-11-29 Thread David Chelimsky
On Nov 29, 2007 10:55 AM, sinclair bain <[EMAIL PROTECTED]> wrote: > Hey,I just updated from the edge and it looks like this _issue_ has > resurfaced. > > Yesterday things were working (stories and specs). > No code base changes, only rspec and rspec_on_rails > > After updating today I now need to

[rspec-users] Rollbacks, Sqlite3 bug. Has this been reintroduced ?

2007-11-29 Thread sinclair bain
Hey, I just updated from the edge and it looks like this _issue_ has resurfaced. Yesterday things were working (stories and specs). No code base changes, only rspec and rspec_on_rails After updating today I now need to set to false in the spec_helper.rb to get the specs running, the stories ar

Re: [rspec-users] textmate bundle

2007-11-29 Thread R. Pito Salas
Hi Brian >> Any quick idea? > Pito, have you updated your Textmate Bundle? I got it from svn yesterday... Should I get it again? Thanks, - Pito ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Possible Problem with RSpec and

2007-11-29 Thread aslak hellesoy
On Nov 29, 2007 11:23 AM, Stefan Magnus Landrø <[EMAIL PROTECTED]> wrote: > It seems like setting up expectations in before blocks, in combination with > a pending example, makes rake return non-0 > > We had code similar to this: > > describe Model do > before do > OtherModel.should_receive (:so

[rspec-users] Stylistic preferences

2007-11-29 Thread Daniel Tenner
What are people's opinions on which of these two styles is better to use? 1) before --- module UserSpecHelper include GenericSpecHelper def valid_sms_attributes(phone_number="12345") { :phone_number => phone_number } end end describe User, "with phone numb

Re: [rspec-users] Possible Problem with RSpec and

2007-11-29 Thread Stefan Magnus Landrø
It seems like setting up expectations in before blocks, in combination with a pending example, makes rake return non-0 We had code similar to this: describe Model do before do OtherModel.should_receive(:some_method) end it "should whatever" do pending "whatever" end end Removing the expe

Re: [rspec-users] textmate bundle

2007-11-29 Thread Brian Takita
On Nov 28, 2007 11:16 AM, Zach Dennis <[EMAIL PROTECTED]> wrote: > > On Nov 28, 2007 11:56 AM, Brian Takita <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Hello Zach. Are you running Rspec 1.0.8 with the Trunk version of the > > Textmate Bundle? > > > > > > > > It wasn't 1.0.8, but it was a revisi

Re: [rspec-users] textmate bundle

2007-11-29 Thread Brian Takita
On Nov 28, 2007 1:15 PM, R. Pito Salas <[EMAIL PROTECTED]> wrote: > I am having a (probably much more elementary) problem with the > bundle. When I try and "run Behavior Description" (shift-ctrl-option > R) I get an error from TextMate: > > /Library/Application Support/TextMate/Bundles/Ruby RSpec.t