Re: [rspec-users] testing framework for test automation

2012-02-05 Thread Joseph Wilk
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. > ___

Re: [rspec-users] Comparing files

2010-12-10 Thread Joseph Wilk
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 > >

Re: [rspec-users] Comparing files

2010-12-10 Thread Joseph Wilk
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 > > ___

Re: [rspec-users] Comparing files

2010-12-10 Thread Joseph Wilk
> 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 > > ___

Re: [rspec-users] RSpec-2.0.0 is released!

2010-10-11 Thread Joseph Wilk
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

Re: [rspec-users] Quickcheck testing framework

2010-05-19 Thread Joseph Wilk
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

Re: [rspec-users] [Cucumber:4066] Cucumber vs, RSpec

2010-04-20 Thread Joseph Wilk
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 >>

Re: [rspec-users] Anyone used RSpec to write specs for rake tasks?

2010-04-20 Thread Joseph Wilk
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

Re: [rspec-users] [Cucumber:4066] Cucumber vs, RSpec

2010-04-20 Thread Joseph Wilk
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

Re: [rspec-users] Integration testing without cucumber

2010-03-01 Thread Joseph Wilk
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

Re: [rspec-users] somewhat confused by the help instructions...

2010-02-01 Thread Joseph Wilk
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

Re: [rspec-users] Given/When/Then blocks on Cucumber

2009-06-05 Thread Joseph Wilk
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

Re: [rspec-users] Skipping the testscenario based on Given block execution.

2009-05-19 Thread Joseph Wilk
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

Re: [rspec-users] REG: Colour setting for html logs

2009-05-18 Thread Joseph Wilk
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

Re: [rspec-users] Before and After blocks for individual feature files?

2009-05-01 Thread Joseph Wilk
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

Re: [rspec-users] [Cucumber] Tables

2009-04-21 Thread Joseph Wilk
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

Re: [rspec-users] [Cucumber] Tables

2009-04-21 Thread Joseph Wilk
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

Re: [rspec-users] Appropriate adapter (Rails, Cucumber)

2009-04-20 Thread Joseph Wilk
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 ___

Re: [rspec-users] AfterCurrentScenario block

2009-04-17 Thread Joseph Wilk
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

Re: [rspec-users] [cucumber] Tests pass, application does not.

2009-04-09 Thread Joseph Wilk
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

Re: [rspec-users] [Cucumber] Welcome Ben Mabey to the official Cucumber team

2009-04-08 Thread Joseph Wilk
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

Re: [rspec-users] Running cucumber distributed across hardware

2009-04-02 Thread Joseph Wilk
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

Re: [rspec-users] [Cucumber] Running single feature from command line

2009-03-31 Thread Joseph Wilk
? 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

Re: [rspec-users] [Cucumber] Running single feature from command line

2009-03-31 Thread Joseph Wilk
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: [rspec-users] RSpec style and truthiness

2009-03-20 Thread Joseph Wilk
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

Re: [rspec-users] ANN Cucumber 0.2.0

2009-03-18 Thread Joseph Wilk
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

Re: [rspec-users] [Cucumber] When do you log in? (was- Adding a step definition)

2009-03-14 Thread Joseph Wilk
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

Re: [rspec-users] [cucumber] Performance of 0.1.99?

2009-03-14 Thread Joseph Wilk
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

Re: [rspec-users] [cucumber] Using worlds for loading fixtures

2009-03-13 Thread Joseph Wilk
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

Re: [rspec-users] profile format to give overall time...?

2009-03-13 Thread Joseph Wilk
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 __

Re: [rspec-users] where does cucumber.yml live?

2009-03-05 Thread Joseph Wilk
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-

Re: [rspec-users] [cucumber] noob Q deleteing from a list.

2009-03-02 Thread Joseph Wilk
__ 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

Re: [rspec-users] [Cucumber] Enforce a skip on a non-implemented step

2009-02-25 Thread Joseph Wilk
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

Re: [rspec-users] [cucumber ]Missing lettersm 'a' mafter rake features

2009-02-23 Thread Joseph Wilk
: 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

Re: [rspec-users] [cucumber][v0.2alpha]Where could I find API docs for custom formatters?

2009-02-13 Thread Joseph Wilk
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'

Re: [rspec-users] Cucumber - How to enable a disabled field

2009-02-11 Thread Joseph Wilk
/ 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

Re: [rspec-users] testing out cucumber scenario outline feature

2009-02-07 Thread Joseph Wilk
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

Re: [rspec-users] [Cucumber] cucumber command does not work in db transaction

2009-01-29 Thread Joseph Wilk
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

Re: [rspec-users] [Cucumber] cucumber command does not work in db transaction

2009-01-29 Thread Joseph Wilk
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

Re: [rspec-users] [Cucumber] cucumber command does not work in db transaction

2009-01-29 Thread Joseph Wilk
_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

Re: [rspec-users] [cucumber] Features with multipl e user iterations ¿?

2009-01-21 Thread Joseph Wilk
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

Re: [rspec-users] [Cucumber] Scenario Outlines Output Insufficient

2009-01-19 Thread Joseph Wilk
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

Re: [rspec-users] [Cucumber] Scenario Outlines Output Insufficient

2009-01-18 Thread Joseph Wilk
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

Re: [rspec-users] Cucumber Scenario Outlines Output Insufficient

2009-01-17 Thread Joseph Wilk
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

Re: [rspec-users] GivenScenario in cucumber

2009-01-15 Thread Joseph Wilk
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

Re: [rspec-users] [cucumber] before/after scenarios

2009-01-14 Thread Joseph Wilk
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

Re: [rspec-users] [Cucumber] after feature hook?

2009-01-14 Thread Joseph Wilk
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

Re: [rspec-users] [Cucumber] after feature hook?

2009-01-05 Thread Joseph Wilk
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

Re: [rspec-users] [Cucumber] after feature hook?

2009-01-05 Thread Joseph Wilk
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

Re: [rspec-users] cucumber command

2008-12-26 Thread Joseph Wilk
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

Re: [rspec-users] [Cucumber] a few clarifications please...

2008-12-17 Thread Joseph Wilk
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

Re: [rspec-users] [cucumber] before/after scenarios

2008-12-17 Thread Joseph Wilk
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

Re: [rspec-users] [Cucumber] factor out non-user steps

2008-12-16 Thread Joseph Wilk
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-

Re: [rspec-users] Cucumber fat client

2008-12-09 Thread Joseph Wilk
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/

Re: [rspec-users] proxy associantion on controllers

2008-12-05 Thread Joseph Wilk
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

Re: [rspec-users] Any plans for Before-feature or Before-all steps in Cucumber?

2008-12-04 Thread Joseph Wilk
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.

Re: [rspec-users] Any plans for Before-feature or Before-all steps in Cucumber?

2008-12-04 Thread Joseph Wilk
> 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

Re: [rspec-users] Intermittent Cucumber exception

2008-12-03 Thread Joseph Wilk
: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

Re: [rspec-users] cucumber/rspec pending call

2008-12-02 Thread Joseph Wilk
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 "(.*

Re: [rspec-users] cucumber/rspec pending call

2008-12-02 Thread Joseph Wilk
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

Re: [rspec-users] Any plans for Before-feature or Before-all steps in Cucumber?

2008-12-02 Thread Joseph Wilk
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

[rspec-users] Musical Cucumber

2008-12-01 Thread Joseph Wilk
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

Re: [rspec-users] Variance in behaviour: rake features vs. autotest

2008-11-28 Thread Joseph Wilk
write up. Thanks! -- Joseph Wilk http://blog.josephwilk.net ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Cucumber Custom Logging

2008-11-25 Thread Joseph Wilk
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.

Re: [rspec-users] Cucumber Custom Logging

2008-11-24 Thread Joseph Wilk
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

Re: [rspec-users] [Cucumber] single feature run produces duplicate features in HTMl report

2008-11-24 Thread Joseph Wilk
. -- Joseph Wilk http://blog.josephwilk.net ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Features and conditions for those to be executed

2008-11-24 Thread Joseph Wilk
, --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

Re: [rspec-users] cucumber question - uninitialized constant creating object in model

2008-11-24 Thread Joseph Wilk
= "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://

Re: [rspec-users] LinkedIn Group

2008-11-20 Thread Joseph Wilk
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

Re: [rspec-users] Cucumber - how to spec a quick search box

2008-11-18 Thread Joseph Wilk
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

Re: [rspec-users] Cucumber - how to spec a quick search box

2008-11-18 Thread Joseph Wilk
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

Re: [rspec-users] A smarter autospec?

2008-11-09 Thread Joseph Wilk
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

Re: [rspec-users] [Cucumber] The User Story File

2008-11-08 Thread Joseph Wilk
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

Re: [rspec-users] [Cucumber] The User Story File

2008-11-07 Thread Joseph Wilk
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 ___

Re: [rspec-users] features and form filling - going declarative?

2008-11-07 Thread Joseph Wilk
__ 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

Re: [rspec-users] [Cucumber] The User Story File

2008-11-07 Thread Joseph Wilk
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

Re: [rspec-users] features and form filling - going declarative?

2008-11-07 Thread Joseph Wilk
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

Re: [rspec-users] cucumber docs

2008-11-06 Thread Joseph Wilk
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

Re: [rspec-users] rake features and cucumber feature/name not producing same result

2008-11-05 Thread Joseph Wilk
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

Re: [rspec-users] Design Pattern proposal for better Rails development

2008-11-05 Thread Joseph Wilk
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

Re: [rspec-users] Testing a wizard with Cucumber

2008-11-04 Thread Joseph Wilk
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

Re: [rspec-users] Cucumber changes between 0.1.8 and edge

2008-11-01 Thread Joseph Wilk
/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

Re: [rspec-users] Should acceptance tests be run against a production environment?

2008-10-29 Thread Joseph Wilk
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

Re: [rspec-users] Mulitbrowser selenium ruby

2008-10-24 Thread Joseph Wilk
#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

Re: [rspec-users] Cucumber, more examples, tabular data input sets

2008-10-21 Thread Joseph Wilk
/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

Re: [rspec-users] Cucumber, more examples, tabular data input sets

2008-10-18 Thread Joseph Wilk
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

Re: [rspec-users] RSpec vs Screw.Unit

2008-10-17 Thread Joseph Wilk
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

[rspec-users] Making Rspec errors with anything less verbose.

2008-10-08 Thread Joseph Wilk
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

Re: [rspec-users] cucumber and printed step and line number

2008-10-08 Thread Joseph Wilk
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

Re: [rspec-users] Adding Test Spy into Rspec mocking framework

2008-10-08 Thread Joseph Wilk
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

Re: [rspec-users] rspec-ui overlap with cucumber?

2008-09-29 Thread Joseph Wilk
.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

Re: [rspec-users] Separating black sheep examples from the rest

2008-09-23 Thread Joseph Wilk
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

Re: [rspec-users] Adding Test Spy into Rspec mocking framework

2008-09-21 Thread Joseph Wilk
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:

Re: [rspec-users] How to write a step for a feature with a select control

2008-09-17 Thread Joseph Wilk
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

Re: [rspec-users] How to write a step for a feature with a select control

2008-09-16 Thread Joseph Wilk
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 --

Re: [rspec-users] Cucumber - stub! or mock?

2008-09-15 Thread Joseph Wilk
. 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

Re: [rspec-users] Adding Test Spy into Rspec mocking framework

2008-09-15 Thread Joseph Wilk
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/. _

Re: [rspec-users] Cucumber - Ambiguous steps

2008-09-15 Thread Joseph Wilk-2
>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

Re: [rspec-users] Cucumber - Ambiguous steps

2008-09-15 Thread Joseph Wilk
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

Re: [rspec-users] Cucumber - Ambiguous steps

2008-09-15 Thread Joseph Wilk
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   2   >