Re: [rspec-users] Testing Layout

2008-04-16 Thread Andy Croll
> Perhaps you should try giving the full path to load, eg. load > (RAILS_ROOT + "/app/controllers/my_controller.rb"). That seemed to do it... was perhaps a typo originally. My bad. Thanks. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mail

[rspec-users] rspec + github == !submodules

2008-04-16 Thread David Chelimsky
Hey all, We ran into some problems last night with the repos up at github. We initially thought it was a git-submodules bug. We learned that it was something else, but in the process of trying to find the source of the bug, we learned a few things about git-submodules and have decided that it crea

Re: [rspec-users] setup for stories

2008-04-16 Thread Ashley Moran
On 16 Apr 2008, at 23:22, Joe Van Dyk wrote: > I've got some code that should run before any stories execute. > Where's a good place to put that? (need to create a @sessions and > @users hash) Ha, just before I got this reply out I noticed David had written the exact same email as me but press

Re: [rspec-users] setup for stories

2008-04-16 Thread David Chelimsky
On Apr 16, 2008, at 6:22 PM, Joe Van Dyk wrote: > I've got some code that should run before any stories execute. > Where's a good place to put that? (need to create a @sessions and > @users hash) The story framework has as simple listener API (not documented, but otherwise nice): class StoryS

[rspec-users] setup for stories

2008-04-16 Thread Joe Van Dyk
I've got some code that should run before any stories execute. Where's a good place to put that? (need to create a @sessions and @users hash) Joe ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Story runner + selenium-rc + wait_for_xxxx

2008-04-16 Thread Mark Van Holstyn
I have done this in the past... def wait_for_ajax(timeout = 3) wait_for_condition "window.Ajax.activeRequestCount == 0", timeout end def wait_for_effects(timeout = 3) wait_for_condition "window.Effect.Queue.size() == 0", timeout end Mark On Wed, Apr 16, 2008 at 3:57 PM, Andy Watts <

Re: [rspec-users] Story runner + selenium-rc + wait_for_xxxx

2008-04-16 Thread aslak hellesoy
On Wed, Apr 16, 2008 at 9:57 PM, Andy Watts <[EMAIL PROTECTED]> wrote: > > Hi, > > I've got a story working with selenium-rc, but am stuck writing ajax-aware > steps. > > How are people coding their story steps to wait for an Ajax event to > complete? > Have you asked the selenium list about

[rspec-users] Story runner + selenium-rc + wait_for_xxxx

2008-04-16 Thread Andy Watts
Hi, I've got a story working with selenium-rc, but am stuck writing ajax-aware steps. How are people coding their story steps to wait for an Ajax event to complete? Here's what I've looked at so far. $browser.wait_for_element_present Looks Ideal, but not in selenium-ruby-client-drivers for s

Re: [rspec-users] Has anyone pulled from the repo recently, but not on/after 4/16?

2008-04-16 Thread Jonathan Linowes
You might try here http://www.google.com.au/intl/en/gday/index.html Jonathan On Apr 16, 2008, at 3:23 PM, Pat Maddox wrote: > Actually, if you updated the repo after 4/16, please send it to me. > Also include any winning lotto numbers for the date of your last pull. > In fact, screw the repo, I

Re: [rspec-users] Has anyone pulled from the repo recently, but not on/after 4/16?

2008-04-16 Thread Pat Maddox
Actually, if you updated the repo after 4/16, please send it to me. Also include any winning lotto numbers for the date of your last pull. In fact, screw the repo, I just want the lotto numbers. ___ rspec-users mailing list rspec-users@rubyforge.org http

Re: [rspec-users] Has anyone pulled from the repo recently, but not on/after 4/16?

2008-04-16 Thread Bryan Ray
I might be of some help ... The last time I pulled the rspec was like Saturday or Sunday. I will tar up my rspec directory and send it over when I get home in a few hours. On 4/16/08, Pat Maddox <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 10:03 AM, Steven Baker <[EMAIL PROTECTED]> > wrot

Re: [rspec-users] Has anyone pulled from the repo recently, but not on/after 4/16?

2008-04-16 Thread Pat Maddox
On Wed, Apr 16, 2008 at 10:03 AM, Steven Baker <[EMAIL PROTECTED]> wrote: > > I screwed up the repo on github and a bunch of commits are missing. > > So I'm hoping that there are a couple people out there that have > > pulled fairly recently (ideally on 4/15), but not today. If so, can > > you

Re: [rspec-users] Has anyone pulled from the repo recently, but not on/after 4/16?

2008-04-16 Thread David Chelimsky
On Apr 16, 2008, at 1:03 PM, Steven Baker wrote: >> I screwed up the repo on github and a bunch of commits are missing. >> So I'm hoping that there are a couple people out there that have >> pulled fairly recently (ideally on 4/15), but not today. If so, can >> you please tar up your entire rspec

Re: [rspec-users] Has anyone pulled from the repo recently, but not on/after 4/16?

2008-04-16 Thread Steven Baker
> I screwed up the repo on github and a bunch of commits are missing. > So I'm hoping that there are a couple people out there that have > pulled fairly recently (ideally on 4/15), but not today. If so, can > you please tar up your entire rspec-dev project and email it to me so > I can try to fix

Re: [rspec-users] Has anyone pulled from the repo recently, but not on/after 4/16?

2008-04-16 Thread Ben Mabey
Pat Maddox wrote: > I screwed up the repo on github and a bunch of commits are missing. > So I'm hoping that there are a couple people out there that have > pulled fairly recently (ideally on 4/15), but not today. If so, can > you please tar up your entire rspec-dev project and email it to me so >

[rspec-users] Has anyone pulled from the repo recently, but not on/after 4/16?

2008-04-16 Thread Pat Maddox
I screwed up the repo on github and a bunch of commits are missing. So I'm hoping that there are a couple people out there that have pulled fairly recently (ideally on 4/15), but not today. If so, can you please tar up your entire rspec-dev project and email it to me so I can try to fix this? Ple

Re: [rspec-users] Testing Layout

2008-04-16 Thread Bart Zonneveld
On 16-apr-2008, at 16:53, Andy Croll wrote: > Bart Zonneveld wrote: >> On 16-apr-2008, at 13:57, Andy Croll wrote: >>> Is there a way to specify which layout an action should use in a >>> controller? >> >> Off the top of my head, not tested: >> >> describe MyController do >>it "should use the

Re: [rspec-users] Testing Layout

2008-04-16 Thread Andy Croll
Bart Zonneveld wrote: > On 16-apr-2008, at 13:57, Andy Croll wrote: >> Is there a way to specify which layout an action should use in a >> controller? > > Off the top of my head, not tested: > > describe MyController do >it "should use the foo layout" do > MyController.should_receive(:la

Re: [rspec-users] Testing Layout

2008-04-16 Thread Bart Zonneveld
On 16-apr-2008, at 13:57, Andy Croll wrote: > Is there a way to specify which layout an action should use in a > controller? Off the top of my head, not tested: describe MyController do it "should use the foo layout" do MyController.should_receive(:layout).with("foo") load("app/cont

Re: [rspec-users] before_validation callbacks bypassed when stubbing :valid?

2008-04-16 Thread Edvard Majakari
On Wed, Apr 16, 2008 at 2:54 PM, Ashley Moran <[EMAIL PROTECTED]> wrote: > Or equally, you could have a Factory class that knows how to create > valid objects. This can be handy for generating test data, and > separates it from the class under test. (Some metaprogramming would > let you defi

[rspec-users] Testing Layout

2008-04-16 Thread Andy Croll
Is there a way to specify which layout an action should use in a controller? Andy -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] before_validation callbacks bypassed when stubbing :valid?

2008-04-16 Thread Ashley Moran
On 16 Apr 2008, at 12:34, Edvard Majakari wrote: > you could consider implementing > class method new_valid for each of your objects, so that whenever the > concept of a valid object changes, there's > only one place you have to fix. Or equally, you could have a Factory class that knows how to cr

Re: [rspec-users] before_validation callbacks bypassed when stubbing :valid?

2008-04-16 Thread Edvard Majakari
On Wed, Apr 16, 2008 at 1:05 AM, Zubin Henner <[EMAIL PROTECTED]> wrote: > I'm testing an ActiveRecord model using rspec and mocha, and found that > if I stub out the :valid? method, all before_validation callbacks are > also skipped! Naturally, as it is AR's valid method which triggers those ca

Re: [rspec-users] rspec 1.1.4

2008-04-16 Thread Juanma Cervera
Thanks Pat -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] before_validation callbacks bypassed when stubbing :vali

2008-04-16 Thread Ashley Moran
On 16 Apr 2008, at 00:01, Zubin Henner wrote: > I don't need to validate the freight selection since that's handled > elsewhere - I just want it to be valid. But I expected the > before_validation filter to run. I've found a workaround, but I guess > I'd like to understand this behaviour more, cau

Re: [rspec-users] Story Framework

2008-04-16 Thread Ashley Moran
On 16 Apr 2008, at 09:04, ?eljko Filipin wrote: > with_steps_for :user do > run 'rspec' > end Hi Željko Did you mean: "run 'login.txt'" here? Ashley -- http://www.patchspace.co.uk/ http://aviewfromafar.net/ ___ rspec-users mailing list rspec-us

Re: [rspec-users] rspec 1.1.4

2008-04-16 Thread Pat Maddox
On Wed, Apr 16, 2008 at 12:45 AM, Juanma Cervera <[EMAIL PROTECTED]> wrote: > Hello. > I have some troubles with rails edge and decide to try rspec-1.1.4. > > I have installed the plugins downloading the tarballs from github, and I > have this error message when I run autotest. > > > /home/jmc

[rspec-users] Story Framework

2008-04-16 Thread Željko Filipin
I want to use story framework for driving my (functional) Watir tests. I want to start with something simple, like logging in. I had an hour today to try it, and I did not get very far. (I have found http://rspec.info/documentation/stories.html and I will take a look at it tomorrow.) I have found

[rspec-users] rspec 1.1.4

2008-04-16 Thread Juanma Cervera
Hello. I have some troubles with rails edge and decide to try rspec-1.1.4. I have installed the plugins downloading the tarballs from github, and I have this error message when I run autotest. /home/jmcervera/work/chapado2/vendor/plugins/rspec_on_rails/lib/spec/rails/version.rb:11: (RuntimeError)

Re: [rspec-users] getting storyrunner success/failure status in rake task

2008-04-16 Thread Korny Sietsma
Sweet! We're on an r&d project, so we'll probably move to edge... - Korny On Wed, Apr 16, 2008 at 3:53 PM, Ben Mabey <[EMAIL PROTECTED]> wrote: > > Korny Sietsma wrote: > > Hi folks - I'm trying to build a rake task to run our plain-text > > stories, both from a normal build and from our conti