Displaying 20 results from an estimated 2000 matches similar to: "Story Runner: Two ''then'' steps output as ''then..and'' :)"
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 Oct 24
3
Using Mechanize in Story Step Implementations
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::Mechanize.new
page = agent.get ''http://www.gmail.com''
page.should have_tag(''form'', :count => 1)
form = page.forms.first
form.email =
2007 Oct 15
0
Story Runner: ''When..Then..Then..Then'' stories
Maybe I''m slow, but I just noticed that the following code..
Then ''I login''
Then ''I do something else''
...will output as...
Then ''I login''
And ''I do something else''
The same is true for two ''When'' steps
This may have implications for writing reusable steps.
I''m finding that
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 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 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 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
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
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
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 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
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
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 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 May 28
1
nil.send_request = Incorrect worker name?
Hi,
Would greatly appreciate some help with this.
Is the following error caused by an incorrect worker name?
You have a nil object when you didn''t expect it!
The error occurred while evaluating nil.send_request
/usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_master.rb:44:in `ask_worker''
Here''s what I''m doing in my rails console.
2007 Oct 16
10
Scenarios Plugin Pre-Announcement
This is sort of a pre-announcement for a Rails plugin my friend Adam
Williams and I are working on. We''re in the process of extracting it
from a project we are working on so that it can be generally useful to
the Rails community. We are calling it "Scenarios". It is a drop in
replacement for Rails fixtures:
http://faithfulcode.rubyforge.org/svn/plugins/trunk/scenarios/README
2008 Mar 04
9
What is your workflow? Or how to use the story runner the right way.
I really would like to know how people are using the Story and Example
runner to write their software.It would be great to get some direction on
it, because I think I''m missing some points.
Taking the outside-in approach in thought:
At first we write a high-level customer-facing story, this story fails.
Then we start using mocks at object level to use them as a design tool,
and so we
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 Sep 23
4
Story Runner, autoincrementing
I''ve written a story and I run into a snag.
I''ve written the create_forum method and told it to set the id to 1
but when it creates the forum the id is autoincremented.
My forums table is empty but the id keeps incrementing the newest record on
creation.
When I run the story it comes out as something like 59 which fails my story
because I''m asking it to look at /forums/1