Re: [rspec-users] cucumber is_admin? testing

2011-11-28 Thread Aslak Hellesøy
On Nov 28, 2011, at 4:46, Alex Whiteland wrote: > bump! > > I sent letter 3 day ago. > > No email answer, no new theme in group, no new message here. But new > message in group exists. Why? > I haven't seen any messages from you to cu...@googlegroups.com Do you have a link to it? > -- > Posted

Re: [rspec-users] [Cucumber] ANN: Cucumber with pure Java

2011-07-16 Thread Aslak Hellesøy
On Jul 16, 2011, at 12:57, KWIO wrote: > > Hi, > > None of these example links are working,can you please check? > http://github.com/cucumber/cuke4duke > Thanks for your help, > Kedar > > > Ben Mabey-2 wrote: >> >> >> On Mar 25, 2009, at 9:08 AM, aslak hellesoy wrote: >> >>> Big news for all Ja

Re: [rspec-users] 'spec' command not working

2011-03-18 Thread Aslak Hellesøy
What's JSpec? Aslak On Mar 18, 2011, at 1:35, "Will C." wrote: > When I run JSpec, in the command prompt, using the "spec" command, I get > this error: > > 'spec' command not recognized as a command > > I have the latest versions of JSpec and Ruby installed. How can I use > the spec command? No

Re: [rspec-users] rspec-2 for rails-2????

2010-03-03 Thread Aslak Hellesøy
Hey all, rspec-rails-2 will only work with rails-3 (not rails-2). My suspicion is that once rspec-2 is out, folks are going to want to start using it with their existing rails-2 projects (because it offers some sweet new goodness that you won't want to live without). Would anybody be interest

Re: [rspec-users] should and != operator

2009-10-12 Thread Aslak Hellesøy
Den 12. okt. 2009 kl. 21.11 skrev Bret Pettichord : Looks like an rspec bug to me. It's not an rspec bug. != is not a method, and therefore can't be treated by rspec. It's a limitation of ruby. Aslak Bret Willy Mene wrote: I've tried searching around for something describing how the #

Re: [rspec-users] Cucumber vs Rails Fixtures

2009-05-21 Thread Aslak Hellesøy
Ben Mabey wrote: http://wiki.github.com/aslakhellesoy/cucumber/fixtures Ding! That would have been my next click in my Googling. Let's hope this thread pushes that up. > http://groups.google.com/group/cukes What, no gmane yet?? (-: I would have preferred: "I have set up GMane" Thank

Re: [rspec-users] [Cucumber] ANN: Cucumber 0.3.4

2009-05-16 Thread Aslak Hellesøy
On May 14, 10:04 am, Julian Leviston wrote: On 15/05/2009, at 12:48 AM, aslak hellesoy wrote: http://github.com/aslakhellesoy/cucumber/blob/173506c4013a7d733c5b492 ... Enjoy! I just did an upgrade and came up with .0.3.5. The last entry I see on you list was .0.3.4 two days ago? Is t

Re: [rspec-users] cucumber - how to bootstrap outside of rails?

2009-05-02 Thread Aslak Hellesøy
I use mkdir and touch. Me too On May 1, 11:25 pm, James Byrne wrote: Setting up cucumber inside a Rails project is no more difficult than running script/generate cucumber. But what does one do when working without Rails at all? How do you generate the features tree and all of its de

Re: [rspec-users] automating and end to end functional test.

2009-04-27 Thread Aslak Hellesøy
Hi David, So I have a number of Java based web systems. The systems allow users to lodge applications for various products/services that my organisation provides. The applications usually have at least 4 or 5 pages, but may be longer depending on the info that is entered. There is alot of comm

Re: [rspec-users] [Cucumber] call the (Treetop?) parser directly?

2009-04-25 Thread Aslak Hellesøy
Den 25. april. 2009 kl. 13.10 skrev Phlip : Phlip wrote: aslak hellesoy wrote: Try this: require 'cucumber' Cucumber.load_language('en') p = Cucumber::Parser::FeatureParser.new f = p.parse_or_fail <<-EOF Feature: Foo Scenario: Bar Given Zap EOF Aslak Nope! Exact same error. Should I g

Re: [rspec-users] Background and scenario outline interaction

2009-04-25 Thread Aslak Hellesøy
Den 25. april. 2009 kl. 00.22 skrev Jim Morris : Hi, I was surprised by this so I suspect it may be a bug. I have a Scenario Outline, and a Background in my Feature and nothing else, The Background got executed 1 more time than expected. Details are the Scenario Outline had 4 entries in th

Re: [rspec-users] [cucumber, jruby] Same steps are being added multiple t

2009-04-18 Thread Aslak Hellesøy
Aslak Hellesøy wrote: On Tue, Apr 14, 2009 at 12:08 AM, John Goodsen wrote: OK, I'll reproduce in a simple example and create a ticket... Excellent - I'll get to it ASAP I am also having the same issue with cucumber-java. please refer - http://www.ruby-forum.com/topic/

Re: [rspec-users] AfterCurrentScenario block

2009-04-17 Thread Aslak Hellesøy
Den 17. april. 2009 kl. 18.58 skrev Zach Dennis : On Fri, Apr 17, 2009 at 12:31 PM, Aslak Hellesøy wrote: Den 17. april. 2009 kl. 18.06 skrev Matt Wynne : Is there currently a way to register a block to run after the current scenario completes? After. After is used after *any

Re: [rspec-users] AfterCurrentScenario block

2009-04-17 Thread Aslak Hellesøy
Den 17. april. 2009 kl. 18.06 skrev Matt Wynne : Is there currently a way to register a block to run after the current scenario completes? After. If not, we've implemented one. Would anyone be interested in us submitting it as a patch to Cucumber? How is this different from After? As

Re: [rspec-users] [Cucumber] How can I pass an XML block as a parameter?

2009-04-14 Thread Aslak Hellesøy
On Tue, Apr 14, 2009 at 10:37 PM, Stephen Eley wrote: Sorry if I'm asking dumb questions, but I was trying to look this up a few weeks ago myself to represent some example Markdown data, and eventually gave up. This isn't documented anywhere that I could find. I've also never heard

Re: [rspec-users] Expecting nil or false

2009-03-31 Thread Aslak Hellesøy
Den 31. mars. 2009 kl. 18.34 skrev "Colfer, Brian" : What about variable.nil? == true No, that will not raise anything. x.should == nil Or X.should be_nil Ditto for false and true. What have you been trying? Aslak Sent from Brian's iPhone On Mar 31, 2009, at 9:26 AM, "Fernando Perez"

Re: [rspec-users] [Cucumber] ANN: Cucumber with pure Java

2009-03-25 Thread Aslak Hellesøy
Den 25. mars. 2009 kl. 18.18 skrev Ben Mabey : On Mar 25, 2009, at 9:08 AM, aslak hellesoy wrote: Big news for all Java programmers out there. Now you can use Cucumber with pure Java! That's right, you don't have to write a single line of Ruby! (1) All of your step definitions can be writt

Re: [rspec-users] Cucumber - Adding a step definition

2009-03-14 Thread Aslak Hellesøy
Den 14. mars. 2009 kl. 13.59 skrev Matt Wynne : On 13 Mar 2009, at 21:47, aslak hellesoy wrote: On Fri, Mar 13, 2009 at 10:28 PM, Tim Hart wrote: List, Quick question about Cucumber/Gherkin. I'm considering adding 'With' as a step definition to support scenarios like: Given a po

Re: [rspec-users] Sinitra and Cucumber

2009-02-27 Thread Aslak Hellesøy
Aslak Hellesøy wrote: Rob Holland updated the wiki yesterday: http://wiki.github.com/aslakhellesoy/cucumber/sinatra (He reports that the $0 trick described in the blog doesn't work with the latest Sinatra). Rob also has an example in his fork, which I have yet to merge into my repo:

Re: [rspec-users] [cucumber] orphaned steps

2009-02-25 Thread Aslak Hellesøy
Any good way to find all orphaned steps? That is, any steps that exist that do not match any features? You can use RCov. Aslak Many thanks, Tim ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-u

Re: [rspec-users] [Cucumber] host!

2009-02-22 Thread Aslak Hellesøy
Den 22. feb.. 2009 kl. 02.29 skrev Mark Wilden : I'm trying to set a specific host that all my Cucumber steps should use. Putting 'host! "beta.rupture.local"' in Before in env.rb doesn't produce any errors, but it doesn't seem to be making the next request use that host, either. If I explicit

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

2009-02-13 Thread Aslak Hellesøy
API is Cucumber::Ast::Visitor. See cucumber/formatter/*.rb for examples Den 13. feb.. 2009 kl. 08.45 skrev Yingnan Liu : 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't work any more. Are t

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

2009-01-18 Thread Aslak Hellesøy
Den 18. jan.. 2009 kl. 16.11 skrev Andrew Premdas : My problem doesn't seem to be covered by these tickets You still haven't given us a concrete example of what you think is useful output. Are you going to? Aslak 2009/1/17 Joseph Wilk aslak hellesoy wrote: On Sat, Jan 17, 2009 at

Re: [rspec-users] Missing model attribute in cucumber test

2009-01-14 Thread Aslak Hellesøy
James Byrne wrote: I have gotten past this somehow. The only thing that I think may have influenced this is manually preparing the test database. However, now I have a different problem. Here is the same step definition: When /user named "(.*)" is an administrator/ do |name| my_user =

Re: [rspec-users] [cucumber] automation and historical

2008-12-22 Thread Aslak Hellesøy
Den 23. des.. 2008 kl. 01.46 skrev "Tim Walker" : Hi Aslak, Yes, that produced 1. I'll try it again tomorrow. So, if anything fails the error code will be not 0. Is it always 1 or the number of failing tests or anything else? Always 1, but I like your idea. Thanks again Tim On Mon, Dec 2

Re: [rspec-users] Using semantics in steps

2008-12-19 Thread Aslak Hellesøy
On Fri, Dec 19, 2008 at 1:09 AM, Andrew Premdas wrote: Hi All, Wanted to put this idea forward, see what you think of it. I'm using Aslaks lorry feature to illustrate this. See http://github.com/aslakhellesoy/cucumber_rails/tree/master/features/step_definitions/lorry_steps.rb . In part

Re: [rspec-users] calling multiline steps from other steps

2008-12-04 Thread Aslak Hellesøy
And please link to this thread in the ticket. Nabble or somesuch. Ben Mabey wrote: you will just have to experiment and see. Thanks for the reply! So far all my experiments have failed :/ Anyone else have any ideas? Paul -- Posted via http://www.ruby-forum.com/. _

Re: [rspec-users] calling multiline steps from other steps

2008-12-04 Thread Aslak Hellesøy
Ben Mabey wrote: you will just have to experiment and see. Thanks for the reply! So far all my experiments have failed :/ Anyone else have any ideas? Not possible yet. Please file a ticket. Paul -- Posted via http://www.ruby-forum.com/. ___ r

Re: [rspec-users] cucumber and autotest - running all features?

2008-12-04 Thread Aslak Hellesøy
On Thu, Dec 4, 2008 at 6:17 PM, Matt Wynne <[EMAIL PROTECTED]> wrote: WDYT? Possible? Possibly. :) That does sound like it might be possible. On the other hand, in practice, I've found that the current implementation works the way I'd want it to at least 95% of the time. Agree. Sounds

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

2008-12-04 Thread Aslak Hellesøy
aslak hellesoy wrote: On Thu, Dec 4, 2008 at 10:40 AM, Joseph Wilk <[EMAIL PROTECTED] > wrote: On Wed, Dec 3, 2008 at 7:01 PM, Ashley Moran <[EMAIL PROTECTED] > wrote: On 3 Dec 2008, at 16:59, Ben Mabey wrote:

Re: [rspec-users] class << self considered harmful... really?

2008-11-26 Thread Aslak Hellesøy
When (if) this thread ends, let's start a discussion about indentation conventions! kthxbye Avdi Grimm wrote: On Wed, Nov 26, 2008 at 12:17 PM, Matt Wynne <[EMAIL PROTECTED]> wrote: And class variables are problematic in Rails in development mode because of class reloading. And more

Re: [rspec-users] Cucumber Problems with setup selenium/webrat + languages

2008-11-26 Thread Aslak Hellesøy
Please add a ticket since I suffer from amnesia. Sendt fra min iPhone Den 26. nov.. 2008 kl. 17.30 skrev Fernando García Samblas <[EMAIL PROTECTED] m>: On Tue, Nov 25, 2008 at 1:23 PM, Alberto Perdomo <[EMAIL PROTECTED] > wrote: Hi all, i've gotten started

Re: [rspec-users] Spec'ing via features

2008-11-25 Thread Aslak Hellesøy
Tim Walker wrote: Question: In Cucumber when you're writing code to satisfy steps and accessing the model objects directly, what support for asserts, responses, etc. do people use. (the equivalent of ActionController::TestCase and ActiveSupport::TestCase), Fixtures, etc. Cucumber depends u

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

2008-11-07 Thread Aslak Hellesøy
Hi, The customer is not happy about writing Stories in a text editor. Has anyone else experienced this? Is anyone using a wiki, spreadsheet, or word document and automatically converting to a text file? There will be custom editors/wikis with aides like code completion, nice visuals, run

Re: [rspec-users] how to avoid tests removing data that my migrations put in?

2008-11-04 Thread Aslak Hellesøy
Sent from my iPhone On 5. nov.. 2008, at 00.05, Pat Maddox <[EMAIL PROTECTED]> wrote: "Greg Hauptmann" <[EMAIL PROTECTED]> writes: hi, I have an issue in that I have some reference data my migrations run in. However when running "rake spec" it seems to remove the data in the test database

Re: [rspec-users] Cucumber step FIT-like tables

2008-10-27 Thread Aslak Hellesøy
What version/revision? Sent from my iPhone On 27. okt.. 2008, at 19.33, "aidy lewis" <[EMAIL PROTECTED]> wrote: Hi, I am having a problem with my Cucumber step FIT-like tables. This is my scenario Scenario: Filter by new files added Given a database update that creates an ExpiryDate

Re: [rspec-users] Cucumber hoe dependency

2008-10-25 Thread Aslak Hellesøy
On 25. okt.. 2008, at 19.44, Ashley Moran <[EMAIL PROTECTED]> wrote: On Oct 25, 2008, at 3:54 pm, Aslak Hellesøy wrote: You need hoe to develop on Cucumber, but not to use it. Ah ok. I've had Cucumber complain about hoe been missing when I was just using it like a normal

Re: [rspec-users] Cucumber hoe dependency

2008-10-25 Thread Aslak Hellesøy
On 25. okt.. 2008, at 13.30, Ashley Moran <[EMAIL PROTECTED]> wrote: Hi Am I right thinking that Cucumber needs hoe, but it's not an explicit gem dependency? If so, how come? You need hoe to develop on Cucumber, but not to use it. Thanks Ashley -- http://www.patchspace.co.uk/ htt

Re: [rspec-users] cucumber cli getting called incorrectly?

2008-09-22 Thread Aslak Hellesøy
Can you file a bug report please? Aslak On 22. sep.. 2008, at 20.30, Tim Glen <[EMAIL PROTECTED]> wrote: I'm running Rails 2.1.1 and the newest cucumber gem/plugin as of this morning. When I run scripts like `ruby script/generate` or any (I think) rake task (I tried 4 or 5), I get the follo

Re: [rspec-users] Cucumber and fixtures/FixtureReplacement

2008-09-09 Thread Aslak Hellesøy
Did you see that my code uses extend? Yes - tried both in my flailing about :) If that still doesn't work, file a bug report. http://rspec.lighthouseapp.com/projects/16211-cucumber/overview It might be a FixtureReplacement bug, but I'll still look into it. Could it be that FixtureReplacem

Re: [rspec-users] cucumber - mark a step as pending

2008-09-09 Thread Aslak Hellesøy
A plain text step with no matching step definition is pending. Sent from my iPhone On 9. sep.. 2008, at 19.05, "David Chelimsky" <[EMAIL PROTECTED]> wrote: Have you tried? On Tue, Sep 9, 2008 at 12:01 PM, Matt Wynne <[EMAIL PROTECTED]> wrote: I love the way I can throw a call to pending(

Re: [rspec-users] Cucumber: Before(:all)

2008-09-02 Thread Aslak Hellesøy
Hi, , aslak hellesoy wrote (sometime today): at_exit do .. end If I had a number of steps, stories and runners where would I put the kernal at_exit method? At the last 'Then' in a step file? No, never inside a step. You should only register each at_exit hook once. At the bottom

Re: [rspec-users] rspec and rcov

2008-08-25 Thread Aslak Hellesøy
Please file a new ticket for this then. But first check topfunky's recent tweet on REXML. I'm almost certain you've been bitten by a REXML bug. Thanks, David On Mon, Aug 25, 2008 at 1:30 PM, Claudio Poli <[EMAIL PROTECTED]> wrote: hi David, thanks for the reply, I didn't find on ligh

Re: [rspec-users] Documentation for Plain-Text Stories

2008-08-19 Thread Aslak Hellesøy
On Aug 20, 2008, at 7:04 AM, Jim Morris wrote: Aslak Hellesøy wrote: Right now the scope of Before/After is global - i.e. all Before and After blocks will run before and after each scenario. I have deliberately postponed adding scoping of this until I better understand how people want

Re: [rspec-users] Documentation for Plain-Text Stories

2008-08-19 Thread Aslak Hellesøy
On Aug 20, 2008, at 1:04 AM, Pat Maddox wrote: What do you think is the best thing to do? I would prefer to merge it into RSpec whenever it's ready. One of the strong points about RSpec is that it's a complete BDD toolkit: example framework for developer testing, feature runner for customer

Re: [rspec-users] Any news on the rSpec books?

2008-08-19 Thread Aslak Hellesøy
On Aug 20, 2008, at 12:22 AM, Pat Maddox wrote: On Fri, Aug 15, 2008 at 11:29 AM, Dan North <[EMAIL PROTECTED]> wrote: There are also some success stories around using rspec story runner + jruby as a functional testing layer for Java apps. Someone blogged about it a while ago but I forget

Re: [rspec-users] Documentation for Plain-Text Stories

2008-08-19 Thread Aslak Hellesøy
On Aug 19, 2008, at 6:28 AM, Jim Morris wrote: aslak hellesoy wrote: I'm inviting you to provide some constructive feedback about how we could improve it to make the transition easier for people like yourself. I'll give it a try, I'll port some of my stories to cucumber and see how it goe

Re: [rspec-users] Documentation for Plain-Text Stories

2008-08-18 Thread Aslak Hellesøy
On Aug 18, 2008, at 8:57 PM, aidy lewis wrote: Hi, Bret Pettichord tells me yourself and him worked together on an improvement to the watir example. Could you commit it and i will expand on it and wrap it up into an AUT object model. Aidy. Hi Aidy. So you and I have the same Bret number eh?

Re: [rspec-users] Selenium/Watir usage along side Webrat in story testing

2008-06-09 Thread Aslak Hellesøy
If Bryan wraps the webrat API around the Watir API, it can also be used against the new kid on the block: http://celerity.rubyforge.org, which implements the Watir API backed by JRuby and HTMLUnit - orders of magnitudes faster than Watir - and agnostic of webapp architecture (http based). T

Re: [rspec-users] Date comparisons

2008-05-04 Thread Aslak Hellesøy
If your code uses Date#now, always make sure you stub it in your specs. Always. On 5. mai. 2008, at 05.42, "s.ross" <[EMAIL PROTECTED]> wrote: Hi-- On May 3, 2008, at 9:17 AM, Joe Van Dyk wrote: I occasionally get this error: 1) 'A puzzle once featured, should no longer be nominated' FAIL

Re: [rspec-users] sharing story steps

2008-03-21 Thread Aslak Hellesøy
On 21. mars. 2008, at 07.32, "Joe Van Dyk" <[EMAIL PROTECTED]> wrote: > On Thu, Mar 20, 2008 at 2:05 AM, aslak hellesoy > <[EMAIL PROTECTED]> wrote: >> On Thu, Mar 20, 2008 at 5:44 AM, Joe Van Dyk <[EMAIL PROTECTED]> >> wrote: >>> Hi, >>> >>> How can I have a common set of steps that all my st

Re: [rspec-users] Pretty story output for non-Rails project

2008-03-03 Thread Aslak Hellesøy
Like David said. Not working for you? Aslak On Mar 4, 2008, at 8:03, "s.ross" <[EMAIL PROTECTED]> wrote: > On Mar 3, 2008, at 10:19 PM, David Chelimsky wrote: > >> In the mean time, you >> can do it on the command line with --format html and open the >> resulting file in a browser. > > Er... sto