[rspec-users] What command to run all stories?
ed.howland at gmail.com
Thu Nov 15 11:56:55 EST 2007
Hi, I've been following this thread and I can get the example stories
to run with the ruby command. But I've been unable to get the example
to run with all.rb
method `steps_for' for main:Object (NoMethodError)
from /home/edh/story/stories/all.rb:3:in `require'
from /home/edh/story/stories/all.rb:2:in `each'
from stories/all.rb:3:in `require'
from stories/all.rb:2:in `each'
The examples seem older than the version on David's blog. Am I missing
some parts from David's blog?
My directory looks like:
| |-- adder.rb
| |-- addition
| |-- addition.rb
| `-- steps
| `-- addition_steps.rb
If I run the story stand-alone, I get:
Running 2 scenarios:
Story: simple addition
As an accountant
I want to add numbers
So that I can count beans
Scenario: add one plus one
Given an addend of 1 (PENDING)
And an addend of 1 (PENDING)
When the addends are added (PENDING)
Then the sum should be 2 (PENDING)
And the corks should be
`check': SQL logic error or missing database (SQLite3::SQLException)
... 13 levels...
This last part is happening in the at_exit part of Test:Unit
Also, I don't understand why the scenario's are pending.
"The information transmitted is intended only for the person or entity
to which it is addressed and may contain proprietary, confidential
and/or legally privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance
upon, this information by persons or entities other than the intended
recipient is prohibited. If you received this in error, please contact
the sender and delete the material from all computers."
More information about the rspec-users