Displaying 20 results from an estimated 11000 matches similar to: "Story Runner: ''When..Then..Then..Then'' stories"
2007 Oct 15
2
Story Runner: Two ''then'' steps output as ''then..and'' :)
Maybe I''m slow, but I just noticed that the following code..
When ''I login''
When ''I do something else''
...will output as...
When ''I login''
And ''I do something else''
The same is true for two ''Then'' steps
That is really cool!
Reusable steps and coherent English output.
- Andy
--
View this
2007 Oct 14
1
Story Runner: DRYing items used in many stories
The number of stories I have is growing and I''m writing the following step
long hand in each story.
Given ''a user named'', ''Andy'', ''Watts'' do |first_name, family_name|
@email = first_name + ''@test.lan''
create_user( :first_name => first_name, :family_name => family_name,
:email => @email )
2007 Oct 13
13
Story Runner: Readability of output with multiple params
Fistly, many, many thanks for RSpec and Story Runner.
Minor request to improve readability of output
Given a scenario item with multiple params..
Eg. And "the user belongs to", "Joe", "Acme" do |user_name, company_name|
The readability of the following output is less than ideal..
"And the user belongs to company,Joe Public, No Videos"
It would be
2007 Nov 21
0
Testing transactional updates in story runner
How do you guys test transactional updates with story runner?
I have an action that needs to update four different models:
Enrollment.transaction do
@contact.update_addresses(params[:contact_address], params
[:billing_address])
@enrollment.update_attributes!(params[:enrollment])
end
The last update_attributes! will raise ActiveRecord::RecordNotValid
if anything was
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
3
Story runner "macros"
I''ve gotten quite a bit out of Pat Maddox''s screencast
http://evang.eli.st/blog/2007/10/8/story-runner-top-to-bottom-screencast
One thing I''m not sure of is the feature where he writes things like:
When "I POST to", "/articles", :post => {:title => "Title", :body
=> "Body") do | path, params|
post_via_redirect
2008 Jun 01
0
Railsconf and textmate bundle for Story Runner
Hey guys,
A friend and I have been working on a textmate bundle for the story runner
while up here at railsconf. It is still pretty new but we think it
already has some very helpful features that removes some of the pain
points while writing plain text stories. It is on my github account if
you want to learn more and try it out:
http://github.com/bmabey/rspec-story-tmbundle/tree/master
We are
2007 Oct 05
1
Rake & Story Runner
So, having gotten a story (i.e. Story Runner) working (runs in NetBeans and
using ''ruby path/to/story.rb''), I''m looking to see how I''d integrate that
with our build.
Am I right in assuming that there''s no Rake integration yet, or a report? I
couldn''t see any. As far as I can see, "rake spec" doesn''t run or report
on my
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
2007 Nov 13
7
rails story runner returning a nil response code
Has anyone noticed any problems with the Rails story runner returning
a response code of "0" when doing get/post/etc methods? I just
grabbed the latest rails/rspec and just started noticing this problem,
http://pastie.caboo.se/117497
Regular controller specs pass as expected.
--
Josh Knowles
phone: 509-979-1593
email: joshknowles at gmail.com
web: http://joshknowles.com
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
2007 Nov 15
2
Story adapter and SQLite Was:What command to run all stories?
Hi, by switching to MySQL from SQLite, it fixed the problem. I ran
rdebug on it and it is trying to call
I ActiveRecord::Base.connection.begin_db_transaction. from
ActiveRecordSafetyListener.scenario_started. I don''t think SQLLite
likes transactions.
Ed
On Nov 15, 2007 10:56 AM, Ed Howland <ed.howland at gmail.com> wrote:
> If I run the story stand-alone, I get:
> ruby
2007 Oct 24
3
changes to Story Runner steps
Hi all,
The following only affects people who have bravely begun to experiment
with the 2 day-old plain text story runner and definable groups of
steps.
For those who fit that bill, I just committed a few changes that will
require you to make changes to your code.
The StepMatchers class is now the StepGroup class.
The step_matchers methods on PlainTextStoryRunner and StepGroup is now
just
2007 Oct 16
6
RailsStory runner - empty response
I generated a new rails app then installed rspec and rspec_on_rails from
trunk.
I then created a sample story:
require File.dirname(__FILE__) + "/helper"
Story "View Home Page", %{
As a user
I want to view my home page
So that I can get a birds eye view of the system
}, :type => RailsStory do
Scenario "Publisher with no videos" do
When
2007 Oct 02
1
flash in story runner
hi,
is there a way to assert a flash message directly in story runner? Or
do I have to go through the response text instead.
Then "flash message should say success" do
#flash[:notice].should == "User successfully invited"
response.should have_text(/User successfully invited/)
end
linoj
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 Mar 20
1
stories with selenium and the db
Hi all
Tonight I wanted to test out selenium in a story to test some ajax
stuff on a page.
After struggling for an hour or two with disappearing database objects
I found the solution in a blog post by Kerry Buckley.
with the comment included it reads:
# Don''t add an ActiveRecordSafetyListener, or it''ll roll stuff back
class Spec::Story::Runner::ScenarioRunner
def
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
2007 Sep 20
10
Getting Started with Story Runner
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070920/07a80bc7/attachment.html
2007 Oct 17
9
plain text stories: motivation number 27
This is mostly theoretical, but ...
I''m starting to use lighthouse (http://llighthouseapp.com) for my
projects at work. I''m organizing iterations as milestones and stories
as tickets tagged to a milestone.
Lighthouse offers an API so that you can write access the data in your
account and write apps to process that data.
I think you see where this is going.
It seems to me that