[rspec-users] Mocks in StoryRunner

2007-09-14 Thread James Hughes
Hi, I'm trying to get up and running with StoryRunner. I have a story that looks something like the following, but the call to mock_model produces the exception listed below. Am I just misunderstanding the concept? Are mocks not meant to be used in stories like this? Or is this a bug? Changing @us

Re: [rspec-users] Mocks in StoryRunner

2007-09-14 Thread James Hughes
On 9/14/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > On 9/14/07, James Hughes <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm trying to get up and running with StoryRunner. I have a story that > > looks something like the following, but the call to mock_m

Re: [rspec-users] Strange error in StoryRunner (was: Mocks in StoryRunner)

2007-09-19 Thread James Hughes
7;s wrong. thanks, James On 9/14/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > On 9/14/07, James Hughes <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm trying to get up and running with StoryRunner. I have a story that > > looks something like the followi

Re: [rspec-users] Getting Started with Story Runner

2007-09-20 Thread James Hughes
On 9/20/07, Ben Mabey <[EMAIL PROTECTED]> wrote: > Andrew WC Brown wrote: > > I haven't found any How To's to use story runner and I'm not sure how > > to get started. > > Should I be looking for resources on how to use rbehave? > > How do I generate my first Story? > >

Re: [rspec-users] Strange error in StoryRunner (was: Mocks in StoryRunner)

2007-09-20 Thread James Hughes
On 9/19/07, James Hughes <[EMAIL PROTECTED]> wrote: > Hi, > I'm posting this stack trace again because it keeps popping up, > seemingly as the 'default error' when something is wrong with my story > code; for instance, I got it when I referenced a variable in my

Re: [rspec-users] Getting Started with Story Runner

2007-09-22 Thread James Hughes
level and then verify that it satisfies the story, or would you keep ping-ponging back and forth between the two levels? James > > On 9/21/07, Evan David Light <[EMAIL PROTECTED]> wrote: > > > > There are also a couple of examples buried in the trunk under > examples/story/g

[rspec-users] Strange mock_model behaviour with ActiveResource model

2007-10-12 Thread James Hughes
Hi, I have two models in an app that inherit from ActiveResource::Base. The scaffold controller tests for one of the models works fine, but the other one dies when calling mock_model in the "handling GET /fa_codes" spec: Specifically, the call to mock model here: before do @fa_code = mock_m

Re: [rspec-users] Step matchers

2007-10-15 Thread James Hughes
On 10/15/07, Wincent Colaiuta <[EMAIL PROTECTED]> wrote: > El 15/10/2007, a las 14:21, "David Chelimsky" <[EMAIL PROTECTED]> > escribió: > > > On 10/15/07, Wincent Colaiuta <[EMAIL PROTECTED]> wrote: > >> > >> - The customer/client (not necessarily with any programming > >> knowledge) writes the st

Re: [rspec-users] Top Quoting?

2007-10-15 Thread James Hughes
On 10/15/07, Jonathan Linowes <[EMAIL PROTECTED]> wrote: > +1 > > On Oct 15, 2007, at 2:38 PM, s.ross wrote: > > > Sort of off-topic and don't mean to complain, but many on this list > > use top quoting. That works ok if you don't quote the whole previous > > thread. However, I'm finding that scrol

Re: [rspec-users] Step matchers

2007-10-15 Thread James Hughes
On 10/15/07, Wincent Colaiuta <[EMAIL PROTECTED]> wrote: > > I really think it's important that this thing, whatever it ends up > looking like, be nice for programmers to use, not just programmer's > customers. > > Cheers, > Wincent > > > ___ > rspec-user

Re: [rspec-users] Step matchers

2007-10-15 Thread James Hughes
On 10/15/07, Wincent Colaiuta <[EMAIL PROTECTED]> wrote: > I really think it's important that this thing, whatever it ends up > looking like, be nice for programmers to use, not just programmer's > customers. +1 > > Cheers, > Wincent > ___ rspec-users

Re: [rspec-users] Strange mock_model behaviour with ActiveResource model

2007-10-17 Thread James Hughes
des.xml" do describe FaCodesController, "handling GET /fa_codes/1" do describe FaCodesController, "handling GET /fa_codes/1.xml" do Here's the model, controller_spec and controller: http://pastie.caboo.se/108209 FYI, I tried changing the base class of the model to ActiveRec

Re: [rspec-users] Feeding the framework ?

2007-10-18 Thread James Hughes
On 10/18/07, Keith McDonnell <[EMAIL PROTECTED]> wrote: > Hi there, > > Is it just me or do many other rspec / rpsec_on_rails users spend more > time than they would like feeding the framework ? > > Don't get me wrong, I love rpsec, but I seem to spend about 2/3 hours > per week hunting down rspec

Re: [rspec-users] Strange mock_model behaviour with ActiveResource model

2007-10-18 Thread James Hughes
Never mind. User error. jh On 10/17/07, James Hughes <[EMAIL PROTECTED]> wrote: > On 10/12/07, Bryan Ray <[EMAIL PROTECTED]> wrote: > > Can you post your entire: > > > > it "should assign the found fa_codes for the view" block? as well as > > yo

Re: [rspec-users] Using Mechanize in Story Step Implementations

2007-10-24 Thread James Hughes
On 10/24/07, Andy Watts <[EMAIL PROTECTED]> wrote: > > Hi, > > Thought this might be of interest story writers. > The mechanize plugin seems to play nice with RSpec. > The following mix of methods seems to work just fine. > I especially like the helpers for populating forms. > > agent = WWW::Mechan