Displaying 20 results from an estimated 10000 matches similar to: "Getting Started with Story Runner"
2007 Oct 05
2
Rails, rSpec edge problems
Hi,
Does the Story Runner work on edge rails?  I thought that is what the 
example app was using but I am on the latest Rails and latest rSpec 
revisions and I am having problems. When I call ''render_template'' in a 
story I get the following:
NoMethodError: undefined method `render_template'' for 
#<ActionController::Integration::Session:0x327d974>
Do I need to
2007 Nov 07
10
Plain Text Story example
Hey all,
Does anyone have an example(s) of the plain text story runner for 
rails?  I have read David''s blog 
(http://blog.davidchelimsky.net/articles/2007/10/22/plain-text-stories-on-rails)  
about it but I would like to see some examples with all of the step 
matchers included...  I couldn''t find any more examples on google 
talking about the plain text stories and the example
2007 Oct 19
11
Patch idea for rspec_on_rails
I recently wrote a matcher for testing AR associations which allows
you to specify things like:
    Foo.should have_many(:bars).through(:bazes)
I''m pretty darned proud of it and a couple of people have suggested
that I should submit it to the rspec_on_rails project. Before I go to
the trouble of writing out rdoc and fully spec''ing it, I just wanted
to make sure this was
2007 Nov 12
2
Using the mock framework in story runner
Hey all,
What is the easiest way to include rpec''s mocking framework into a story 
so I can use it?  I want to use it to stub out a Net::HTTP method so I''m 
not making API calls every time I run my story. :)
Thanks,
Ben
2009 Feb 25
5
[Cucumber] pretty html output?
Cucumberists (and RSpec Classic users ;):
How can we convert a Cucumber feature file into HTML with syntax highlighting?
Not the test-runner output; that''s preprocessed so it does not match the input 
file...
Tx!
-- 
   Phlip
2007 Nov 11
8
Autotest with rspec HTML output
Hey all,
I was just wondering if any one has played around with getting 
autotest''s rspec integration working with rspec''s HTML output.  I really 
like how in the  rspec textmate bundle the context of the failing code 
is inlined with the failing spec along with the exact line highlighted 
and a link to the exact spot in reference.  However, I rarely use this 
nice output since
2008 May 27
4
Failing rspec story not causing a CruiseControl.rb build to fail?
We''ve just added rspec stories to our CruiseControl.rb build.  When there''s a failing scenario we see the failure in the log output, but it doesn''t cause the CruiseControl build to fail.  We''ve also just upgraded to the latest rspec version, 1.1.4, which fixes rspec bug 228, but the CC.rb build is still passing.
Has anyone got failing rspec stories making
2007 Sep 29
4
How to write the very first example?
Many posts on this list are about using RSpec with Rails and that''s the way
I''m also using RSpec all the time.
Unfortunately there isn''t that much info about using RSpec for standalone
Ruby projects.
I must admit I''m really having a hard time writing the very first example(s)
for a fresh standalone Ruby project. I haven''t really got a clue where to
2009 Apr 26
9
Problems running features with Textmate Cucumber bundle
I finally plunked down for the beta RSpec bundle and I''m working
through the initial example.  Although I''m a fairly experienced RSpec
user, I''m stlll learning new tricks.
Anyway,  I''m going though the mastermind example, and everything is
going well, except that I decided to also try out the Textmate bundle
for Cucumber.  I decided to use Ben Mabey''s
2008 May 11
5
Are you writing "imperative" or "declarative" scenarios in your stories?
Hey all,
I just found Bryan Helmkamp''s (of webrat fame) slides on a presentation 
he did at GoRuCo 2008:
http://www.brynary.com/2008/4/26/story-driven-development-slides-posted
On slides 21-24 he talks about writing good stories and shows gives two 
examples.. the way not to do it and the way to do it.  You can also see 
the video of the presentation at confreaks 
2007 Sep 03
6
blog post on story runner
Here''s an excellent blog post on Story Runner, which will be part of
the next release and is undergoing active development in trunk:
http://evang.eli.st/blog/2007/9/1/user-stories-with-rspec-s-story-runner
2008 Jan 05
1
status/exit code for story runner
Hi All,
I''m trying to incorporate our stories into our build for our
cruisecrontrol.rb projects and it looks like the Story Runner always
returns a 0 (zero) no matter if the tests pass or fail.
This is in contrast to the actual and expected behavior of the spec
command which will return a 0 or a 1 depending on whether specs pass or
fail.
Am I doing something wrong with the story runner
2008 Jan 21
5
attachment_fu and story runner, any updates
I''m trying to write a story for a Rails app which involves using the
attachment_fu plugin to upload images.
After blunting my pick on this for a while, google found me this:
http://www.ruby-forum.com/topic/134743#600831
So it seems that there''s a hole in Rails integration testing and
multipart form posting.  David offered to incorporate a patch to story
runner at the end of the
2008 Jun 02
7
Pretty HTML reporting for stories
Hi all,
I''m just getting to grips with rspec, and I''m trying to put together a
showy demo. We''re trying to use the (plain text) stories feature, rather
than the specs. I''d like to show off a fancy HTML report of the results
if possible.
So it seems I can do this from the spec command line tool, but I can''t
make it work for a story.
I''ve got
2008 Oct 06
10
Uninitialized constant Spec:Story
Hi, I''m fairly new to Rails and v. new to RSpec. Think it looks pretty 
useful and so I''m trying it out for the first time. I have installed the 
rspec-rails gem and created a simple plain text my_story file and 
my_story.rb file along the lines described here - 
http://www.tomtenthij.co.uk/2008/1/25/rspec-plain-text-story-runner-on-a-fresh-rails-app.
When I run
2008 Aug 29
1
Cucumber and multi-line steps
Hi all,
Where can we add tickets for Cucumber?  While trying to migrate a
current project I ran into a snag.. specially that cucumber does not
support multi-line steps like the edge rspec story runner (which makes
sense since this was such a new feature to the story runner.)  Anyways,
I don''t have enough time at the moment to dig into it myself so I''d like
to at least log it.
2008 Jun 14
15
Reusing story snippets
I find myself doing this:
Scenario "logged in user visiting the home page" do
  Given "A logged in user" do
    a_logged_in_user
  end
  When "..."
  Then "..."
end
The a_logged_in_user method is a helper method in helper.rb which sets
up the state so that the user can browse the website.
Later in the story of course, I can just do ''Given
2007 Dec 20
19
Story runner rake task
What''s the status on a rake task for the story runner. If nothing is  
in progress, where could I start to try and build one?
JD
2007 Nov 07
1
LoadError when upgraded to latest rspec trunk
I just moved my rspec and rspec_on_rails plugin from r2691 to r2822.  
After that I upgraded both of them I regenerated all things rspec with 
the rspec generator.  I was running on rails r2691 but upgraded to the 
latest at r2822 when I was getting errors but that still didn''t help things.
I get the following when I try to run a spec with either rake spec or 
./script/spec:
2008 Nov 04
8
Testing a wizard with Cucumber
Assuming you have a multi-step wizard like thing, with lots of different
states and paths through it. What approach would your use to write a feature
for it? What I want to do is do the separate states and then reuse these
things in more complex scenarios that cover paths. For example
Scenario: State A
   Given I''m ...
   And I''m ...
   When I ...
   Then I should see
   And I at