Re: [rspec-users] webrat methods are undefined

2009-01-28 Thread Tom Hoen
Scott Taylor wrote: > > git clone git://github.com/zdennis/webrat.git I am sorry to be a pain, but i get the following error. Initialize webrat/.git Initialized empty Git repository in c:/projects/pospaw/vendor/plugins/webrat/.git/ fatal: read error (Invalid argument) Tom -- Posted via http

Re: [rspec-users] webrat methods are undefined

2009-01-28 Thread David Chelimsky
On Wed, Jan 28, 2009 at 3:57 PM, Scott Taylor wrote: > > On Jan 28, 2009, at 4:49 PM, Tom Hoen wrote: > >> Zach Dennis wrote: >> >>> >>> This will probably still break in webrat HEAD, I am using this branch >>> right now which includes a fix that is not in HEAD (it's waiting to be >>> merged, or f

Re: [rspec-users] webrat methods are undefined

2009-01-28 Thread Scott Taylor
On Jan 28, 2009, at 4:49 PM, Tom Hoen wrote: Zach Dennis wrote: This will probably still break in webrat HEAD, I am using this branch right now which includes a fix that is not in HEAD (it's waiting to be merged, or for another solution to take effect): http://github.com/zdennis/webrat/

Re: [rspec-users] webrat methods are undefined

2009-01-28 Thread Tom Hoen
Zach Dennis wrote: > > This will probably still break in webrat HEAD, I am using this branch > right now which includes a fix that is not in HEAD (it's waiting to be > merged, or for another solution to take effect): >http://github.com/zdennis/webrat/tree/make_current_url_fully_qualified I

Re: [rspec-users] [Cucumber, TextMate Bundle] Call for help

2009-01-28 Thread Ben Mabey
On 1/28/09 12:43 PM, Matt Wynne wrote: On 28 Jan 2009, at 16:54, Ben Mabey wrote: Hey all, As some of you may know I created the Cucumber TextMate bundle: http://github.com/bmabey/cucumber-tmbundle/tree/master What most of you probably don't know is that I stopped using TextMate (in favor of

Re: [rspec-users] specs run faster separately than together

2009-01-28 Thread Jeremy Lightsmith
On Wed, Jan 28, 2009 at 12:34 PM, Scott Taylor wrote: > > On Jan 28, 2009, at 3:21 PM, Jeremy Lightsmith wrote: > > So this is weird. >> >> on my current project I've been working on speeding up specs, and I just >> found that >> >> time rake spec => 4m 0s >> >> whereas >> >> time rake spec:contr

Re: [rspec-users] specs run faster separately than together

2009-01-28 Thread Scott Taylor
On Jan 28, 2009, at 3:21 PM, Jeremy Lightsmith wrote: So this is weird. on my current project I've been working on speeding up specs, and I just found that time rake spec => 4m 0s whereas time rake spec:controllers spec:models spec:helpers spec:lib => 2m 32s Do those rake tasks run rak

[rspec-users] specs run faster separately than together

2009-01-28 Thread Jeremy Lightsmith
So this is weird. on my current project I've been working on speeding up specs, and I just found that time rake spec => 4m 0s whereas time rake spec:controllers spec:models spec:helpers spec:lib => 2m 32s (we don't have any view specs) any idea why this might be true? I compared numbers of t

Re: [rspec-users] webrat methods are undefined

2009-01-28 Thread Zach Dennis
On Wed, Jan 28, 2009 at 2:29 PM, Tom Hoen wrote: > Josh - > > I used "git clone git://github.com/brynary/webrat.git". Should I have > used a different repo? > > First, I set up the host with my subdomain > > host! "rpems.test" > > Then the steps for the admin login: > > visit "/login" > fill_in

Re: [rspec-users] [Cucumber, TextMate Bundle] Call for help

2009-01-28 Thread Matt Wynne
On 28 Jan 2009, at 16:54, Ben Mabey wrote: Hey all, As some of you may know I created the Cucumber TextMate bundle: http://github.com/bmabey/cucumber-tmbundle/tree/master What most of you probably don't know is that I stopped using TextMate (in favor of Vim) several months ago. Since then t

Re: [rspec-users] webrat methods are undefined

2009-01-28 Thread Tom Hoen
Josh - I used "git clone git://github.com/brynary/webrat.git". Should I have used a different repo? First, I set up the host with my subdomain host! "rpems.test" Then the steps for the admin login: visit "/login" fill_in("login", :with => "admin") fill_in("password", :with => "test")

Re: [rspec-users] webrat methods are undefined

2009-01-28 Thread Josh Knowles
On Wed, Jan 28, 2009 at 1:37 PM, Tom Hoen wrote: > I installed the edge code (at least I believe I have) by doing a "git > clone" into the vendor/plugins/webrat folder and changing the env.rb > file to no longer require the gem. > > However, I am still getting the error. When I attempt to login to

Re: [rspec-users] testing capistrano tasks

2009-01-28 Thread Scott Taylor
On Jan 28, 2009, at 10:01 AM, Mike Gaffney wrote: We actually have a machine that is a perfect clone of the production machine. The only difference is the passwords. We test all deployments to it first. We call it staging. Having a staging has 2 benefits: 1) We can test our deployment scri

Re: [rspec-users] webrat methods are undefined

2009-01-28 Thread Tom Hoen
> > There are a number of fixes for redirects and subdomain related > functionality which are currently tagged for the 0.4.1 release. I had > this problem after upgrading to 0.4.0, and have since updated to edge > until 0.4.1 is out. > Thanks Zach I installed the edge code (at least I believe

Re: [rspec-users] [RSpec] Error when returning multiple values from a stub

2009-01-28 Thread Nick Hoffman
On 27/01/2009, at 11:03 AM, Nick Hoffman wrote: Hey guys. I've just found some odd behaviour within RSpec 1.1.12 , and would like to know whether this is a bug, or I'm doing something wrong. When I give multiple return values to a stub, like this: SubtitleFile.stub!(:new).and_return @sf1, @

Re: [rspec-users] [RSpec] Cloning objects and leaking state

2009-01-28 Thread Nick Hoffman
On 28/01/2009, at 12:16 PM, Pat Maddox wrote: If it doesn't automatically clone (it may, I don't know), it probably should provide a lambda syntax so you can do: default :subtitles => lambda { [] } Yeah, I just looked at the code for ARD and this is the problem. You can pass in immutable objec

Re: [rspec-users] webrat methods are undefined

2009-01-28 Thread Zach Dennis
On Wed, Jan 28, 2009 at 11:55 AM, Tom Hoen wrote: > Tom Hoen wrote: >> Appears that I did not fully remove the webrat plugin, and this was >> causing the problem. >> >> Thanks again for your help. > > Perhaps I should request this in a new topic, but it could be another > simple mistake I am makin

Re: [rspec-users] [RSpec] Cloning objects and leaking state

2009-01-28 Thread Nick Hoffman
On 28/01/2009, at 12:12 PM, Pat Maddox wrote: On Wed, Jan 28, 2009 at 8:30 AM, Nick Hoffman wrote: On 28/01/2009, at 7:50 AM, Zach Dennis wrote: On Tue, Jan 27, 2009 at 2:48 PM, Nick Hoffman wrote: G'day folks. I've been beating my head on this one problem for a couple of hours, and

Re: [rspec-users] [RSpec] Cloning objects and leaking state

2009-01-28 Thread Pat Maddox
> If it doesn't automatically clone (it may, I don't know), it probably > should provide a lambda syntax so you can do: > default :subtitles => lambda { [] } Yeah, I just looked at the code for ARD and this is the problem. You can pass in immutable objects and they don't get affected for obvious

Re: [rspec-users] [RSpec] Cloning objects and leaking state

2009-01-28 Thread Pat Maddox
On Wed, Jan 28, 2009 at 8:30 AM, Nick Hoffman wrote: > On 28/01/2009, at 7:50 AM, Zach Dennis wrote: >> >> On Tue, Jan 27, 2009 at 2:48 PM, Nick Hoffman wrote: >>> >>> G'day folks. I've been beating my head on this one problem for a couple >>> of >>> hours, and have managed to figure out what's c

Re: [rspec-users] webrat methods are undefined

2009-01-28 Thread Tom Hoen
Tom Hoen wrote: > Appears that I did not fully remove the webrat plugin, and this was > causing the problem. > > Thanks again for your help. Perhaps I should request this in a new topic, but it could be another simple mistake I am making. I have the following scenario Scenario: Login Given

[rspec-users] [Cucumber, TextMate Bundle] Call for help

2009-01-28 Thread Ben Mabey
Hey all, As some of you may know I created the Cucumber TextMate bundle: http://github.com/bmabey/cucumber-tmbundle/tree/master What most of you probably don't know is that I stopped using TextMate (in favor of Vim) several months ago. Since then the Cucumber bundle has been somewhat neglected

Re: [rspec-users] webrat methods are undefined

2009-01-28 Thread Tom Hoen
Appears that I did not fully remove the webrat plugin, and this was causing the problem. Thanks again for your help. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo

Re: [rspec-users] [RSpec] Cloning objects and leaking state

2009-01-28 Thread Nick Hoffman
On 28/01/2009, at 7:50 AM, Zach Dennis wrote: On Tue, Jan 27, 2009 at 2:48 PM, Nick Hoffman wrote: G'day folks. I've been beating my head on this one problem for a couple of hours, and have managed to figure out what's causing it. However, I don't understand why it's happening, nor do I kno

Re: [rspec-users] webrat methods are undefined

2009-01-28 Thread Tom Hoen
Hey Matt - > I should update to the new version of webrat (0.4) and cucumber (can't > remember) as this stuff has gone through some churn but stabilised > following that 0.4 release. > > Check the webrat docs, but (with that new version) I think you need to > do something like > > Webrat.configu

Re: [rspec-users] testing capistrano tasks

2009-01-28 Thread Mike Gaffney
We actually have a machine that is a perfect clone of the production machine. The only difference is the passwords. We test all deployments to it first. We call it staging. Having a staging has 2 benefits: 1) We can test our deployment scripts, migrations, etc on as close as we can get to produc

Re: [rspec-users] webrat methods are undefined

2009-01-28 Thread David Chelimsky
On Wed, Jan 28, 2009 at 9:15 AM, Tom Hoen wrote: > I am sure it is just a configuration issue, but when I use any of the > steps in the webrat_steps.rb file, I get messages like: > > undefined method `click_link' > > I have the webrat gem installed (0.3.4). I have the aslakhellesoy-webrat > (0.3.

Re: [rspec-users] Testing Sub-domains with Cucumber

2009-01-28 Thread Matt Wynne
On 28 Jan 2009, at 14:32, Juanma Cervera wrote: Jonathan Linowes wrote: On Jan 14, 2009, at 11:39 AM, Tom Hoen wrote: for example, Given /^a "(.+)" account$/ do |name| account = Account.create( :name => name ) host! "#{account.to_param}.example.com" end Can somebody point me to the docu

Re: [rspec-users] webrat methods are undefined

2009-01-28 Thread Matt Wynne
On 28 Jan 2009, at 15:15, Tom Hoen wrote: I am sure it is just a configuration issue, but when I use any of the steps in the webrat_steps.rb file, I get messages like: undefined method `click_link' I have the webrat gem installed (0.3.4). I have the aslakhellesoy- webrat (0.3.2.2) gem insta

[rspec-users] webrat methods are undefined

2009-01-28 Thread Tom Hoen
I am sure it is just a configuration issue, but when I use any of the steps in the webrat_steps.rb file, I get messages like: undefined method `click_link' I have the webrat gem installed (0.3.4). I have the aslakhellesoy-webrat (0.3.2.2) gem installed, and I have the webrat plugin installed. I

Re: [rspec-users] Testing Sub-domains with Cucumber

2009-01-28 Thread Juanma Cervera
Jonathan Linowes wrote: > On Jan 14, 2009, at 11:39 AM, Tom Hoen wrote: > >> Posted via http://www.ruby-forum.com/. >> ___ >> rspec-users mailing list >> rspec-users@rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users > > > for example,

Re: [rspec-users] [RSpec] Cloning objects and leaking state

2009-01-28 Thread Zach Dennis
On Tue, Jan 27, 2009 at 2:48 PM, Nick Hoffman wrote: > G'day folks. I've been beating my head on this one problem for a couple of > hours, and have managed to figure out what's causing it. However, I don't > understand why it's happening, nor do I know how to solve or get around it. > > One of my

Re: [rspec-users] (Cucumber) Non-default folder hierarchy in Cucumber Textmate bundle

2009-01-28 Thread Matt Wynne
On 27 Jan 2009, at 17:33, Tim Walker wrote: I refactored my folder hierarchy organizing my cucumber features in sub-folders of features such as model, control, listeners, etc. Wow - are you using Cucumber to write unit tests? Matt Wynne http://blog.mattwynne.net http://www.songkick.com

Re: [rspec-users] testing capistrano tasks

2009-01-28 Thread Matt Wynne
On 27 Jan 2009, at 17:08, Brian Takita wrote: On Tue, Jan 27, 2009 at 4:15 AM, Matt Wynne wrote: Not done it, but Cucumber acceptance tests would surely be a good fit here: Given there is a database "foo" When I run the script Then there should be a backup no more than 1