uld give us a little more background to what you are testing.
Is it a web app? Is it written in Ruby? What type of testing are you
looking at? Integration tests, unit tests.
Thanks
--
Joseph Wilk
http://blog.josephwilk.net
> appreciate. Thank you.
> ___
already?
In the past I've generated a checksum for each file and compare that.
--
Joseph Wilk
http://blog.josephwilk.net
http://www.songkick.com
+44 (0)7812 816431
>
> cheers,
> Matt
>
> m...@mattwynne.net
> 07974 430184
>
>
gt;
In the past I've generated a checksum for each file and compare that.
--
Joseph Wilk http://blog.josephwilk.net http://www.songkick.com +44
(0)7812 816431
> cheers,
> Matt
>
> m...@mattwynne.net
> 07974 430184
>
> ___
>
In the past I've generated a checksum for each file and compared that.
-- Joseph Wilk http://blog.josephwilk.net http://www.songkick.com +44
(0)7812 816431
> cheers,
> Matt
>
> m...@mattwynne.net
> 07974 430184
>
> ___
d Matt.
>
> Good job!
Here, Here!
Thanks David and everyone that put blood, sweat and tears into Rspec 2.0.
Much appreciated.
--
Joseph Wilk
http://blog.josephwilk.net
http://www.songkick.com
+44 (0)7812 816431
>
> Aslak
>
>
> This marks the end of a year-long e
On 17 May 2010, at 11:38, David Chelimsky wrote:
On May 16, 2010, at 11:10 PM, Scott Taylor wrote:
On May 16, 2010, at 8:13 PM, David Chelimsky wrote:
On May 16, 2010, at 12:54 PM, Scott Taylor wrote:
Hey all,
I'm wondering if anyone has any experience with an automated test-
case gene
osephwilk.net/ruby/outside-in-development-with-cucumber-and-rspec.html
--
Joseph Wilk
http://blog.josephwilk.net
http://www.songkick.com
+44 (0)7812 816431
>
> On Tue, Apr 20, 2010 at 3:58 PM, Joseph Wilk wrote:
>>
>> On Tue, Apr 20, 2010 at 8:05 PM, David Chelimsky
>>
ept coming up with stuff
about using the rake tasks provided by RSpec.
I tend to do what Pat suggested with Rspec. In Cucumber I've had cases
where I really wanted to run a rake task directly. This was pretty easy:
http://gist.github.com/373000
--
Joseph Wilk
http://blog.jose
e, but it does
end-up costing lots.
One other point is that Cucumber for me is part of a process about
facilitating conversations with non techs. So as a developer its not
always a question of how many Cukes do I think I should have. Its a
question of how much does the stakeholders who I'm writ
using a very simple
spec_helper.rb.
Maybe this can be some help to you;
http://gist.github.com/318821
--
Joseph Wilk
http://blog.josephwilk.net
http://www.songkick.com
mob: +44(0)7812816431
___
rspec-users mailing list
rspec-users@rubyforge.org
http://r
On 01/02/2010 16:20, Matt Wynne wrote:
On 1 Feb 2010, at 14:53, Phillip Koebbe wrote:
David Chelimsky wrote:
Agreed:
http://github.com/rspec/rspec-core/blob/master/features/command_line/example_name_option.feature
Thanks, David.
I don't want to sound all gushy or anything, but you hav
When I fill "q" textbox with "Hello World"
And I click "btnG" button
Then I see "Hello World - Google Search" title
While the block idea is interesting the key thing for me is the scenario
reads like prose.
Also we have moved C
precondition of testcase fails.
In a Scenario if any step fails the following steps of that scenario
are skipped.
This is the current behaviour of Cucumber. Older versions of Cucumber
had some trouble with properly skipping these steps.
HTHs
--
Joseph Wilk
http://blog.josephwilk.net
Thanks,
Anil
there.
https://rspec.lighthouseapp.com/projects/16211/tickets/285-html-formatter-summary
Please help me in this regard.
Thanks,
Anil kumar
HTH,
--
Joseph Wilk
http://blog.josephwilk.net
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforg
out of having a non JRuby app use Celerity.
http://github.com/langalex/culerity/tree/master
There is also a Selenium style equivalent -> WebDriver -> a headless
browser. I've not got round to playing with it yet, but it looks nice
http://code.google.com/p/webdriver/
--
Josep
On Tue, Apr 21, 2009 at 7:32 PM, Jonathan Linowes
wrote:
>
> On Apr 21, 2009, at 1:57 PM, Joseph Wilk wrote:
>
>> What you really want is an examples table that is embedded in a step
>> (different from a step table, maybe by keyword?) that causes the step to be
>> run
e, maybe by keyword?) that causes the step to
be run multiple times for each of the values. So rather than using
placeholders we embedded a Examples table in the step.
Just my inital thoughts. I'll knock together an example and more ideas
when I get home...
--
Joseph
the js scenarios.
> cucumber --tags @js features/
---
So you have two separate runs of Cucumber. Hence you could have a env.rb
for each. One that loads Selenium (or Webrat driving Selenium) and the
other Webrat.
HTH,
--
Joseph Wilk
http://blog.josephwilk.net
___
e" do
#clean
end
--
Joseph Wilk
http://blog.josephwilk.net
If not, we've implemented one. Would anyone be interested in us
submitting it as a patch to Cucumber?
Something like
Given "something that will not be rolled back after the scenario is
finished" do
ori
on this:
https://rails.lighthouseapp.com/projects/8994/tickets/2240-let-users-decide-what-mock-framework-to-use
Could this be causing some conflict?
--
Joseph Wilk
http://blog.josephwilk.net
However,
___
rspec-users mailing list
rspec-users@rub
onsists of Joseph Wilk, Ben Mabey and
myself. Welcome Ben!
Aslak
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Co
lution.
What's the current state of the art for distributed test runs? Is
anybody doing it for real? As part of the build or before check-in?
Where would be the best place to contribute effort? Testjour looks the
most likely...
If you are thinking Selenium then there is the Selenium
? I did discover that if I
uninstall cucumber 0.2.3 and try version 0.1.16, then the above
command line works as does using the profile. I'm not sure if this
indicates a bug in 0.2.3.
Mark Lynn
Sabado Technologies
On Mar 31, 2009, at 9:26 AM, Joseph Wilk wrote:
Mark Lynn wrote:
I am using Cu
install treetop from this source and see if
that fixes the problem.
HTH
--
Joseph Wilk
http://blog.josephwilk.net
How can I get this to work from the command line so I can also use it
in Textmate?
- Mark
Mark Lynn
Sabado Technologies
___
re assertion? .
Please frame that and put it on a wall somewhere. Its Quite brilliant.
--
Joseph Wilk
http://blog.josephwilk.net
(...And so forth. All of which is to say, before my Muse molested me,
that I rather _like_ the sparse "should be" and "should_not be&qu
x27;s this, like a cucumber in each ear?
Cucumber earrings are clearly in this year :)
http://en.dawanda.com/product/2413009-Cucumber-NonAllergic-Stud-Earrings-Polymer-Clay
--
Joseph Wilk
http://blog.josephwilk.net
___
rspec-users mailing
ite like this as it allows me to minimise login crossover in steps
that require login but don't want to explicitly say so. i.e.
Given I have accrued 10 days vacation
The step definition would having nothing to do with login, which might
save having to check if login has alread
ct syntax
tree structure where we represent a more complex object structure than
before (but not massively I think). And hence we have more complex tree
traversal but again I don't see it being huge.
It would be interesting to see some performance comparisons.
--
Joseph Wilk
http://blog.josephwil
can gain access to the scenario name
(http://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/44). You
could switch this to run the relevant fixture if you wish. (This is a
bit smelly)
HTH
--
Joseph Wilk
http://blog.josephwilk.net
___
rspe
ion time in the pretty
formatter in the same way that Rspec does.
Thanks
--
Joseph Wilk
http://blog.josephwilk.net
I know that (on *nix) I can use the 'time' command, but it would be
cool to have something within cucumber itself.
Thanks a lot,
Steven
__
on it was also used as it made it nicer
when running multiple lines in the same file
file:10:11:14:15
--
Joseph Wilk
http://blog.josephwilk.net
-Ben
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-
__
rspec-users mailing list
rspec-us...@rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
--
Joseph Wilk
http://blog.josephwil
nding' function but it instead marks
the step as skipped?
When /^that data is loaded$/ do
skip
end
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
--
Joseph Wilk
http://blog.jose
:
rake features
and you won't believe what happened!
Take a look at the result:
http://gist.github.com/68907
The 'a' letters ARE MISSING
Any ideas?
Take a look at:
http://wiki.github.com/aslakhellesoy/cucumber/troubleshooting
--
Jos
Formatter api for version 0.2 we can update this page with the new details
HTH,
--
Joseph Wilk
http://blog.josephwilk.net
Yingnan Liu wrote:
Hi,
I'm working on update my local Cucumber to the latest version. But it
seems the old formatter APIs(step_failed, scenario_executed, etc.)
don'
/
Since Celerity does not use a GUI it tends to be *much* faster than
Selenium.
--
Joseph Wilk
http://blog.josephwilk.net
Tom Hoen wrote:
Pat Maddox wrote:
You have to go through the browser, using something like selenium
(which can be driven by cucumber)
Pat
Since I only have this
c::Runner (NameError)
in:
/webrat-0.4.1/lib/webrat/rspec-rails.rb:8
I've not come across this one before but it looks like its not finding
your Rspec gem/plugin.
--
Joseph Wilk
http://blog.josephwilk.net
I am missing something? should I open
Ben Mabey wrote:
Juanma Cervera wrote:
Joseph Wilk wrote:
Woops, sorry I meant:
@@@
Cucumber::Rails.use_transactional_fixtures
@@@
Joseph, thanks for the reply.
I do have Cucumber::Rails.use_transactional_fixtures in env.rb
I have verified it failing when setting the database in
Woops, sorry I meant:
@@@
Cucumber::Rails.use_transactional_fixtures
@@@
Joseph Wilk wrote:
Juanma Cervera wrote:
I am working in an scenario and it's still failing. I have not yet
finished it.
And I am running it constantly with the cucumber command, not with rake.
The problem is that
_transactional_fixtures = true
@@@
In your env.rb?
If you are using a browser based testing tool such as Selenium or Watir
you have to deal with the clean-up yourself (using Cucumber's hooks:
http://wiki.github.com/aslakhellesoy/cucumber/hooks).
--
Jos
ney, the
destination (and value) is seeing I've made a reservation.
Looking at your initial steps this one jumps out at me:
Given I want to make a reservation for a service
While it gives intent and a goal it does not explain the start state so
I
Andrew Premdas wrote:
> You misunderstood I bit of my post, I've nested a comment. Its towards
> the
> end of the post.
>
> 2009/1/18 Joseph Wilk
>
>> Scenario Outline: viewing resources #
>> features/admin/poop.feature:11
&g
features/admin/poop.feature:8
|product |
|user |
This is the solution suggested in the ticket:
It provides more concise output, the output represents what the actual
defined scenario looks like however hidden steps are presented out of
context.
--
Joseph Wilk
http://blog.josephwilk.net
us an
example of the problem.
Thanks
--
Joseph Wilk
http://blog.josephwilk.net
It would be immensly helpful if you could give some examples of what
kind of output you think is better.
Aslak
TIA
Andrew
___
rspec-users
please
enlight me! :)
We have been looking at adding a 'Background' section to cucumber.
http://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/153-add-optional-background-section-to-features#ticket-153-11
WDYT?
This should be coming to a cucu
Paul Covell wrote:
Joseph Wilk-4 wrote:
Tim Walker wrote:
So...that's it: Setup/Teardown Before/After scenarios...what's the scoop?
http://github.com/aslakhellesoy/cucumber/wikis/hooks
Does the information here answer your questions or do you think its
missing so
to happen before/after everything you can use
World and at_exit respectively.
--
Joseph Wilk
http://blog.josephwilk.net
Regards
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/r
for selenium to start a browser). So rather than
closing and opening new browsers we use a single browser instance open
throughout the test run. We terminate the session before each scenario
(By accessing logout).
@@@ruby
World do
...
browser.open '/logout'
...
end
@@@
--
Joseph
to happen before/after everything you can use
World and at_exit respectively.
--
Joseph Wilk
http://blog.josephwilk.net
Regards
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/r
is.
If you want to use the tool directly you could do:
cucumber --require features/support/ --require
features/step_definitions/ --language es
features/administracion/alta_centros.feature
HTH
--
Joseph Wilk
http://blog.josephwilk.net
Tha
thub (0.1.13) you can also force steps which
have an implementation to the pending state using the 'pending' method
which works in the same way as Rspec's pending.
When "I want to be lazy" do
pending "Implement me!"
end
--
Joseph Wilk
http://blog.josephwilk.net
the information here answer your questions or do you think its
missing some details?
HTH
--
Joseph Wilk
http://blog.josephwilk.net
Thanks,
Tim
(Also, the logo's are looking awesome!)
___
rspec-users mailing list
rspec-users@rubyforge.org
http://r
domain.
What do people think?
--
Joseph Wilk
http://blog.josephwilk.net
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
___
rspec-
Matt Wynne wrote:
On 9 Dec 2008, at 15:11, aslak hellesoy wrote:
On Tue, Dec 9, 2008 at 3:52 PM, steven shingler <[EMAIL PROTECTED]>
wrote:
Hey Aslak,
Doesn't this sound a bit like your Kipling project, which we spoke
about at QCon London, back in March? ;)
(http://gitorious.org/projects/
Looks like a missing '!':
User.stub!(:find).with(1).and_return(@user) # <=<=<=<=<=<=
--
Joseph Wilk
end
The error:
undefined method `stub' for #
Atenciosamente,
Daniel Lopes Area Criações
Design, Websites e Sistemas Web
Visite: http://www.areacriacoes.com
for?
Abstract Syntax Tree
http://en.wikipedia.org/wiki/Abstract_syntax_tree
--
Joseph Wilk
http://blog.josephwilk.net
Matt Wynne
http://blog.mattwynne.net
http://www.songkick.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.
> As a...
>
> Scenario: blah
>Groups: twitter web
>
> Or something. Maybe?
We currently have an issue on tagging but it will have to wait until Aslak
has done his AST magic.
http://rspec.lighthouseapp.com/projects/16211/tickets/54-tagging-scenarios
--
Joseph Wilk
http://b
:31
/opt/local/bin/rake:19:in `load'
/opt/local/bin/rake:19
Can you share the arguments in the relevant Cucumber rake task?
Thanks,
--
Joseph Wilk
http://blog.josephwilk.net
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
ut the next two lines if you're not using RSpec's matchers
(should / should_not) in your steps.
require 'cucumber/rails/rspec'
#require 'webrat/rspec-rails'
Having said that if you need an instant solution you can use:
@@@
When /set the "(.*)" to "(.*
spec.lighthouseapp.com/projects/16211/tickets/52-unmatched-steps-should-less-tolerable-than-pending-steps
But I think it could do with a new ticket. Would you mind creating one
please?
Thanks,
--
Joseph Wilk
http://blog.josephwilk.net
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
etup from adding noise to my test code. I appreciate with mock
services your situation is slightly different.
--
Joseph Wilk
http://blog.josephwilk.net
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
http://www.youtube.com/watch?v=U3OxKdDxkpg
Sorry, I had to share that :)
--
Joseph Wilk
http://blog.josephwilk.net
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
write up. Thanks!
--
Joseph Wilk
http://blog.josephwilk.net
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
James Byrne wrote:
> Joseph Wilk wrote:
>>
>> I don't think this is the case. Every Before/After that is in a required
>> file is run before a scenario. So in theory you could create one Before
>> (in for example env.rb) which would get called for all scenarios.
ou look at the progress formatter in cucumber it should be a good
start for you.
HTH,
--
Joseph Wilk
http://blog.josephwilk.net
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/ma
.
--
Joseph Wilk
http://blog.josephwilk.net
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
, --exclude PATTERNDon't run features matching a pattern
@@@
windows: --format progress features --exclude pesky_windows_feature
mac: --format progress features
@@@
Then run them with:
cucumber --profile windows
cucumber --profile mac
HTH,
--
Joseph Wilk
http://blog.j
= "test"
require File.expand_path(File.dirname(__FILE__) +
'/../../../config/environment')
...
@@@
Also make sure when you run the cucumber command that it either
automatically (it will include siblings or below) or explicitly though a
--require includes your env.rb
--
Joseph Wilk
http://
aslak hellesoy wrote:
On Thu, Nov 20, 2008 at 2:28 PM, Rahoul Baruah <[EMAIL PROTECTED]> wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 20 Nov 2008, at 13:18, Ashley Moran wrote:
On Nov 20, 2008, at 12:20 pm, aslak hellesoy wrote:
Ashley Moran has already created an
Zach Dennis wrote:
On Tue, Nov 18, 2008 at 5:44 AM, Joseph Wilk <[EMAIL PROTECTED]> wrote:
Mikel Lindsaar wrote:
Hello all.
Wondering if anyone else has solved this.
Some websites (including the intranet app I am working on) have a form in
the top corner of the site t
ike:
When I submit a quick search for 'Bob Smith'
But here I'm assuming that its not really important to the customer how
they submit the form just that they can.
WDYT?
--
Joseph Wilk
http://blog.josephwilk.net
___
rspec-users ma
dback asap on a fail. The faster I get
feedback the earlier I realize I've broken something and the easier it
will be to localise the error. I think getting error messages I already
know about is easily worth the sacrifice of this.
--
Joseph W
the scenarios and email you the results. Sometimes
> everything will just pass. Sometimes you'll know you have new work to
> do.
Don't we already have this with something like cruisecontrol.rb [1]?
Checkout the code from Github, set it up as a project in cruisecon
terribly 20th century but you could use a pen and paper :)
I've started doing this a lot more now we have a 21st century pen
(http://www.amazon.com/Logitech-io2-Digital-Writing-System/dp/B00064FXH0).
--
Joseph Wilk
http://www.joesniff.co.uk
___
__
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
I like abstract/concrete
My other suggestions:
* Explicit / Implicit
* High level / Low level
* Coarse / fine
--
Joseph Wilk
http://www.joesniff.co.u
works for Cucumber, no
quantifiable deadlines yet though I'm afraid.
--
Joseph Wilk
http://www.joesniff.co.uk
Matt Wynne wrote:
Are you pairing with them? Can you not just drive and do the typing,
asking them questions all the while to keep them engaged?
I think David is cooking somet
ed.
I also test forms and error ouput in Features. But more than 'test a
form' I'm really testing a user value holds and it just so happens that
this value is achieved through some form process. Its also important to
remember that features cross cut through the whole application
I suggest you checkout the wiki that Cucumber has on Github .
http://github.com/aslakhellesoy/cucumber/wikis
Lots of useful information.
HTH
--
Joseph Wilk
http://www.joesniff.co.uk
On Thu, Nov 6, 2008 at 9:30 PM, Tim Walker <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> What is the
y and hunt down what beginning state I
could be missing.
Any other ideas?
Mikel
Are you running using Webrat or Selenium/Watir?
--
Joseph Wilk
http://www.joesniff.co.uk
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
should_receive(:find_if_purchased) to
should_receive(:find_if_subscribed) ?
I think as David mentioned 'search and replace' in an IDE helps ensure
that is not painful. I'd even go so far as to say its quite fun, buts
thats just me :)
--
Joseph
Its still there in source.
You can read why people felt calling steps from steps was a better approach
here:
http://rspec.lighthouseapp.com/projects/16211/tickets/3-create-givenscenario-dependency-accross-feature-files
--
Joseph Wilk
http://www.joesniff.co.uk
On Tue, Nov 4, 2008 at 7:28 PM, Ben
/tickets/new
Thanks,
Joseph Wilk
--http://www.joesniff.co.uk
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
oes mean you have to be very careful to isolate your
acceptance tests from each other due to caching/session/cookie/database
commits.
--
Joseph Wilk
http://www.joesniff.co.uk
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/ma
#go rspec go!
# spec --format html spec/
@selenium.stop
end
A further note, it does seem a bit odd to have specs that touch Selenium
if thats what you are doing. Perhaps look towards using Features and
something like Cucumber
http://github.com/aslakhellesoy/cucumber/tree/master rather th
/invoces/1 |
etc.
WDYT?
cheers,
Matt
This sounds like a good direction Matt.
I think its important to make it clear that it is not a normal scenario
to avoid step matching confusion/why is this not being run.
Would you mind creating a ticket for it in lighthouse please?
Thanks,
--
Joseph
Scenario'
would behave with such a scenario.
--
Joseph Wilk
http://www.joesniff.co.uk
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On of the things I've noticed with ScrewUnit is to quote the ScrewUnit wiki:
"The dynamic nature of JavaScript makes mocking frameworks mostly
unnecessary"
A small but interesting difference from using Ruby, Rspec and its
built-in mocking framework.
--
Joseph Wilk
http://www
its ok"], _)
but received it with (_, _, ["I can have \\", "and its ok"], _)
---
So what I'm suggesting is
1. Replace:
#
With: '_'
2. Replace received with parameters which are marked in the expectation
as anything with '_'
Does that seem
can turn off?
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Showing the step and line was made the default behavior. You can turn it
off using
--no-source
--
Joseph Wilk
http
Brian Takita wrote:
On Sun, Sep 21, 2008 at 11:17 AM, Joseph Wilk <[EMAIL PROTECTED]> wrote:
I've been doing further work on adding the Test Spy to the RR mocking
framework.
Awesome! Do you have a clone available?
I'm not quite ready to push my work up to Github. I
.rb
It still however cannot do all the JavaScript magic and complex UI
interactions that selenium can do.
--
Joseph Wilk
http://www.joesniff.co.uk
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
abase interaction in your model specs. Can you give an
example?
--
Joseph Wilk
http://www.joesniff.co.uk
It's starting to get tiring to run all the specs now, which is making
me sad, and making me worry about how things are going to be in a few
months from now.
I'd like to som
ds(:name, :length)
http://notahat.com/not_a_mock
http://github.com/notahat/not_a_mock/tree/master
Thought this might be of interest to you Pat.
--
Joseph Wilk
http://www.joesniff.co.uk
Pat Maddox wrote:
> On Mon, Sep 15, 2008 at 8:43 AM, David Chelimsky <[EMAIL PROTECTED]>
> wrote:
rspec-stories-from-the-trenches.html
--
Joseph Wilk
http://www.joesniff.co.uk
Matt Wynne wrote:
> I think they could do with creeping onto the rspec.info pages too.
> Those pages are pretty thin for a stories newbie.
>
> On 17 Sep 2008, at 09:22, Damian Jones wrote:
>
>> Th
a string in your when step.
When("I pick '$option' from my '$field'") do |option, field|
end
OR you could use a regular expression
When(/^I pick '(.*?)' from my '(.*?)'$/) do |option, field|
end
HTH
--
Joseph Wilk
http://www.joesniff.co.uk
--
. If you are
going to repeat the given steps a lot I would extract the model set-up
into a ruby function and reuse this.
--
Joseph Wilk
http://www.joesniff.co.uk
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
dpress.com/2008/08/dont-give-up-on-mocking.pdf
And from the creator of mockito
http://monkeyisland.pl/2008/01/14/mockito/
(whose URL brings back good old memories.)
Have a good evening/morning/afternoon,
--
Joseph Wilk
http://www.joesniff.co.uk
--
Posted via http://www.ruby-forum.com/.
_
>I like this much better. -Guiding people to use regexen properly is
>better than redefining their semantics.
Well put. Do you mind if I add this David?
Thanks,
Joseph Wilk
--
View this message in context:
http://www.nabble.com/Cucumber---Ambiguous-steps-tp19480001p19493430.html
Sen
other
> thing/'
> ./features//foo-steps.rb:1:in `/this and "(.*)"/'
> (Cucumber::Ambiguous)
>
> Consider ending the shorter expression with a $
>
> WDYT?
I can see the logic of what you are both saying, so David's
error/warning seems l
David Chelimsky wrote:
> On Mon, Sep 15, 2008 at 3:54 AM, Joseph Wilk <[EMAIL PROTECTED]>
> wrote:
>> You can still use non-regular expression steps in Cucumber:
>>
>> I've been unable to think of a good example where I would want only a
>> partial mat
1 - 100 of 132 matches
Mail list logo