On Sun, Jan 8, 2012 at 8:18 PM, umair iqbal wrote:
> Hi All
> I am new to rspec. How can I write specs for this class
> Anyone please provide me the detail specs for this class
> thanks
>
Start by asking yourself what this class does. Then try to come up
with an example. Then, think about what th
On Thu, Nov 24, 2011 at 11:12 AM, Alex Whiteland wrote:
> Aslak, I send a message to group email, but I haven't answer yet.
>
What email did you send to? We haven't received anything from you. I'm
assuming you're using a regular mail client?
> --
> Posted via http://www.ruby-forum.com/.
> __
On Wed, Nov 23, 2011 at 5:55 PM, Alex Whiteland wrote:
>> that is added to cucumber's world does not have access to your
>> application
>> controller's @current_user variable.
>
> So, I understand this. But how I can avoid this defect?
>
> If I paste def is_admin? into application_controller near
On Wed, Nov 23, 2011 at 4:19 PM, Alex Whiteland wrote:
> Aslak, but if I haven't Google Account?
>
You don't need one. Click "About this group", and you'll see the
group's email address.
Your first message will be moderated.
Aslak
> --
> Posted via http://www.ruby-forum.com/.
>
On Wed, Nov 23, 2011 at 3:10 PM, Alex Whiteland wrote:
> I don't know where to put this post,
Here: http://groups.google.com/group/cukes
> but theme of this more similar to
> my issue.
>
> I have trite signin system, like this:
>
>> ApplicationController:
> include SessionsHelper
>
> private
>
>
On Wed, Nov 16, 2011 at 5:45 PM, Chris Habgood wrote:
> this group is for rspec
>
The Cucumber list -> http://groups.google.com/group/cukes
> On Wed, Nov 16, 2011 at 11:34, Vin MR wrote:
>>
>> I'm new with Ruby and Cucumber. I've tried this simple test, but it
>> didn't work for me
>>
>> Give
On Wed, Nov 16, 2011 at 5:34 PM, Vin MR wrote:
> I'm new with Ruby and Cucumber. I've tried this simple test, but it
> didn't work for me
>
> Given
> When I enter ABC on keyboard
> Then ...
>
>
> And here is the ruby code
> When /^I enter "([^\"]*) on keyboard$/ do |input|
That RegExp doesn
On Mon, May 9, 2011 at 4:12 PM, S Ahmed wrote:
> Andrew, I've actually read allot of the book (but admittedly I brushed over
> the cucumber sections), but I was confused at this point.
>
> I understand the outside in development, etc.
>
> What I was confused at was if the two technologies actuall
On Mon, May 9, 2011 at 3:00 PM, S Ahmed wrote:
> I'm a bit confused as to how cucumber and rspec integrate (if they d at
> all?).
>
>
RSpec is two things:
a) A runner (command line program)
b) An assertion library (should, should_not, be_nil and friens)
Cucumber doesn't use a) at all.
If you wan
On Sun, Mar 27, 2011 at 11:16 PM, Rodrigo Rosenfeld Rosas
wrote:
> Em 27-03-2011 10:32, Matt Wynne escreveu:
>>
>> On 27 Mar 2011, at 03:43, Rodrigo Rosenfeld Rosas wrote:
>>
>>> Hi David and fellows,
>>>
>>> I know this subject has already been discussed here and there are already
>>> some attemp
Misha, Cucumber has its own mailing list (see http://cukes.info)
Please repost your question there.
Aslak
On Thu, Jan 20, 2011 at 12:13 PM, Misha Ognev wrote:
> Hello. I know that's not RSpec, but it belong to BDD.
>
> I have some problem with cucumber. When I run all commands in cucumber,
> I
> ## RSpec-2.0.0 has been released!
>
>
David, I'm so impressed how you have managed to manage a half-rewrite,
updating the RSpec book (which now soon goes to print) and coordinating
everything with Rails and the 80+ contributors. The upgrade process has been
extremely simple for me taken into acco
On Tue, Jun 29, 2010 at 4:58 AM, Brandon Olivares
wrote:
> Hi,
>
> I recently upgraded to Rails 3 beta, a few weeks ago. One thing I would
> really like to do is to develop components of my application, because some
> of them I'd really like to be able to reuse on other projects. I know how to
> m
On Thu, May 20, 2010 at 10:21 PM, Chuck van der Linden wrote:
>
> On May 18, 11:08 am, Audrey A Lee wrote:
>> Dear list,
>>
>> Today I am working through the simple tutorial here:
>> http://wiki.github.com/aslakhellesoy/cucumber/ruby-on-rails
>>
>> It has me install Cucumber-Rails and then creat
On Tue, Mar 30, 2010 at 12:17 PM, Ramon Tayag wrote:
> Hey everyone!
>
> A few days ago, I tried my hand at creating a gem. I've been putting it off
> for a long time because of the lack of documentation (or the lack of my
> Googling skills). When I search how to create gems with RSpec, I get pag
On Tue, Mar 2, 2010 at 9:39 AM, Zhenning Guan wrote:
> one_data = Net::HTTP.post_form(URI.parse(country_site), {'country' =>
> "american"})
> two_data = Net::HTTP.post_form(URI.parse(visit_site), {'country' =>
> "english"})
>
> I have a code similar like above code in my application, so how to mo
On Sat, Feb 27, 2010 at 5:17 AM, Ed Howland wrote:
> Hi,
>
> Searched for this everywhere, so here goes.
>
> I am having trouble matching multiline strings with leading whitespace
> in them using the """ operator.
>
>
Cucumber intentionally removes all the space characters left of the leftmost
tr
ls project and used:
> > $ script/generate --webrat --rspec
> >
> > then compared the features/support/env.rb; mine was missing:
> > require 'cucumber/rails/rspec'
> >
> > after adding that statement, the be_true and be_falses worked fine
> > then I r
> I agree
>
> I did notice that my feature/support/my_env.rb (custom) had:
> require 'spec'
> require 'spec/rails'
>
> so I changed first line
> require 'spec/autorun'
>
>
You shouldn't do that. You don't want the RSpec runner to run when you're
using Cucumber.
In fact, you shouldn't do any RSp
> Stuck as to what dependency is calling for cucumber 0.4.4 -
config/environments/cucumber.rb?
(Failing that - search for the string "0.4.4" among your project's files)
> we want to
> stick to 0.4.3 but Cygwin installation not allowing it - OK on Mac
>
What's stopping you from running 0.4.4?
I
> Stuck as to what dependency is calling for cucumber 0.4.4 - we want to
> stick to 0.4.3 but Cygwin installation not allowing it - OK on Mac
>
Cucumber has its own mailing list: http://groups.google.com/group/cukes
>
>
> /usr/bin/ruby.exe -I
> "/usr/lib/ruby/gems/1.8/gems/cucumber-0.4.3/lib:lib"
Cucumber has its own mailing list now.
Can you please post there? http://groups.google.com/group/cukes
Aslak
On Tue, Nov 3, 2009 at 2:01 PM, Ray K. wrote:
> Inspired by the latest railscast I tried to do some table diffing:
>
> But my problem is that the haml generated table does not produce th
On Wed, Oct 28, 2009 at 4:49 PM, David Chelimsky wrote:
> On Oct 28, 2009, at 10:41 AM, Student wrote:
>
>> I need to perform some work (shutdown mysql servers & delete their
>> data directories) at the end of my tests. Naturally, I would like to
>> use at_exit. HOWEVER, when I do, the spec file
On Wed, Oct 7, 2009 at 10:24 PM, Andrew Premdas wrote:
> 2009/9/25 Mithun Perera
>
>> Mithun Perera wrote:
>> > Mithun Perera wrote:
>> >> Hi all,
>> >> I am an university student and these days i am on training period. So i
>> >> want to know about ruby on on rails "cucumber and Rspec". If some
> Hi,
>
> Hoping someone can help me out here. Whenever I try to run cucumber
> features I keep getting an error that "cucumber database is not
> configured". Stack trace is below.
>
Please use the Cucumber list (
http://wiki.github.com/aslakhellesoy/cucumber/get-in-touch), not this one.
When y
> Aslak Hellesøy wrote:
regards, Trond
>>>
>>> I'm having the same problem as Raymond, but on Windoze. Is there another
>>> version? The only I can seem to find is the 0.0.1 on
>>> http://github.com/aslakhellesoy/cucumber_java/downloads
>>>
>>
>> No more recent versions have been released
> Trond Marius Øvstetun wrote:
>> I believe (someone correct me if I'm wrong..) that the version of
>> cucumber_java you have installed is an older version from a central
>> repository. cucumber/pico_container is the result of a recent
>> refactoring
>> (as is cucumber/spring).
>> For me it helped
> It seems that some examples at http://rspec.info are broken with
> invalid html.
>
> For example: http://rspec.info/documentation/before_and_after.html
>
I assume you're referring to:
http://validator.w3.org/check?uri=http%3A%2F%2Frspec.info%2Fdocumentation%2Fbefore_and_after.html&charset=(detec
> aslak hellesoy wrote:
>>>
>>> Hey Folks,
>>>
>>>
>>
>> Aargh profiles. The initial intention was that you could just do
>> cucumber -p foo.
>> And then you wouldn't have to type a lot of arguments.
>>
>> The intentio
> Hi all,
>
> It looks like the following line was removed from "/lib/spec/
> expectations.rb" on April 11:
>
> attr_accessor :differ
>
> When I try to use cucumber (version 0.3.6), it tries to
> call ::Spec:Expectations.differ= and fails. There does not seem to be
The actual command, error messa
> Hey Folks,
>
Aargh profiles. The initial intention was that you could just do
cucumber -p foo.
And then you wouldn't have to type a lot of arguments.
The intention was *not* to use -p along with additional arguments,
although cucumber lets you do it by merging stuff together.
Using profiles as
>
> On 20 May 2009, at 09:33, aslak hellesoy wrote:
>
>>>
>>> On 20 May 2009, at 00:04, aslak hellesoy wrote:
>>>
>>>>> Any further thoughts on this, Aslak? I'd prefer to go with a solution
>>>>> in
>>>>> line w
>
>> 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 ha
Instead of answering Cucumber questions on this list, please redirect
people to the new one:
http://www.nabble.com/-Cucumber--ANN%3A-New-Google-Group-for-Cucumber-td23602831.html
Aslak
On Thu, May 21, 2009 at 9:34 AM, Matt Wynne wrote:
>
> On 20 May 2009, at 16:43, Zhenning Guan wrote:
>
>> I h
>
> We are having trouble with JUnit-tests that are doing dependency injection in
> the setup of database connections. The stacktrace identifies autowiring of
> sessionFactory as the problem. During bean creation of sessionFactory we get
> a NoSuchMethodError; probably because of trouble when initi
>
> On 20 May 2009, at 00:04, aslak hellesoy wrote:
>
>>> Any further thoughts on this, Aslak? I'd prefer to go with a solution in
>>> line with the future direction of Cucumber if possible.
>>>
>>
>> Sorry, forgot to get back to you Luke.
>
> On May 19, 2009, at 10:43 PM, Luke Melia wrote:
>
>> On May 19, 2009, at 7:04 PM, aslak hellesoy wrote:
>>
>>> I'm convinced. We'll add an AfterStep hook. Do you want to give a stab
>>> at a patch? Start by writing a feature - see
>>> featur
The Cucumber list has moved:
http://www.nabble.com/-Cucumber--ANN%3A-New-Google-Group-for-Cucumber-td23602831.html
On Wed, May 20, 2009 at 5:29 AM, Korny Sietsma wrote:
> Hi - sorry for the cross-list post, but this issue happens only with
> cucumber and jruby, and I'm not 100% sure which has the
writing a feature - see
features/after_block_exceptions.feature for a good example of the
style we like...
Aslak
> Cheers,
> Luke
>
> On May 15, 2009, at 5:12 PM, Luke Melia wrote:
>
>> On May 15, 2009, at 3:36 PM, aslak hellesoy wrote:
>>
>>> Thanks for doing that. I
> Hi,
> I think i am not clear.
> My query is while running the testcases,
> Some times precondition of testcase fails, when precondition itself
> fails there is no point in executing the testcase further.
> so , is there any way in cucumber to skip execution of scenario when
> precondition of test
Hi Matthew,
Please repost to the new list:
http://www.nabble.com/-Cucumber--ANN%3A-New-Google-Group-for-Cucumber-td23602831.html
On Mon, May 18, 2009 at 8:49 PM, Matthew Van Horn wrote:
> I'm probably missing something really obvious, but I just upgraded cucumber,
> rspec/rails, and webrat on a
> Hi all,
>
> I'm curious how one would recommend testing authorize.net customer
> information manager storage with cucumber stories.
>
> In my checkout process testing, my code sends user profile/card/address
> information to the authorize.net test servers, which then stores the
Introduce an abst
David Chelimsky and I have decided that it's now best to create a
separate mailing list for Cucumber.
The RSpec mailing lists remain the same, but we're hoping that you
will all move Cucumber related discussions to this new list.
I have already sent an invitation to the 98 people who have provided
>>>> So, I guess I have again missed something
>>>>
>>>> Cheers,
>>>> Raymond Barlow
>>>>
>>>> 2009/5/18 Trond Marius Øvstetun
>>>>>
>>>>> On Sun, May 17, 2009 at 12:01 AM, Raymond Barlow
>&g
> 2009/5/15 aslak hellesoy :
>>> Andrew Premdas wrote:
>>>>
>>>> Seem to be having a problem with the new releases 0.3.5 which
>>>> completely breaks my rake tasks http://gist.github.com/112149.
>>>>
>>>> WIth the
> Anil Gollaa wrote:
>>
>> Hi,
>> When i run some testcases using cucumber sample.feature --format
>> html>features.html.
>>
>> 1) After execution, By default in the html file, background colour is
>> black.
>> How can i set the background color any other colour i want. Like we can
>> set
>> other
>
>
> On Mon, May 18, 2009 at 10:02 AM, aslak hellesoy
> wrote:
>>
>> On Sun, May 17, 2009 at 12:01 AM, Raymond Barlow
>> wrote:
>> > OK, that seemed to help a bit. That installed a bunch of stuff, and then
>> > I
>> > did the mvn
sk 'gem'
>
> (See full trace by running task with --trace)
>
> Am I perhaps in the wrong directory when I do this?
>
>
>
> Sorry, just feeling my way around at the moment.
>
Sorry about the sparse documentation. I think we should yank all the
README files and
> Aslak Hellesøy wrote:
>
>>
>> Which terms do you think we should adopt and where in the wiki should
>> this be emphasized more clearly?
>>
>> Aslak
>
> The best suggestion that I can come up with is: Outline Tables for
> Scenario Outlines and Inline Tables for regular scenarios.
>
> As far as the
> Hi,
>
> On my Rails app, when I run 'rake features', it runs it in development
> mode. Which is weird. And messes up my development database.
>
> What can I do to force it to run in test mode?
>
What Cucumber version are you on?
Did you upgrade without reading the changelog? (History.txt)
Asl
> Hi all,
>
> Does anyone have an example of how to get the cucumber-java simple example
> running? I would like to use cucumber-java but cannot figure out how.
>
> I've gem installed cucumber and cucumber-java. When I run mvn clean package
> in the simple directory, I get this error:
>
> 19:41:48
> Aslak Hellesøy wrote:
>>> sure that this is what I was doing, although the table followed a
>>> complete scenario. �However, I have not used tables for the last couple
>>> of months and am somewhat perplexed with respect to the changes.
>>
>> What are these changes you are talking about?? The onl
> Chris Flipse wrote:
>
>> They're actually unrelated. Most of my table matchers have no other
>> regex in the expression
>>
>> You're not seeing anything else with the table data because you're not
>> doing
>> anything with the table data.
>>
>> Given /the following data rates/ do |table|
>>
> On May 15, 2009, at 10:16 AM, aslak hellesoy wrote:
>
>> Can you show me the code you would want to put in AfterStep that would
>> detect a 500 error?
>
> I've written a simple piece of rack middleware (included below) that will
> create a file in the event a
> Aslak Hellesøy wrote:
>
>> http://wiki.github.com/aslakhellesoy/cucumber/scenario-outlines
>>
>> Please let us know what's missing or unclear about that.
>>
>
> That documentation is for scenario outlines. I had gathered that one
> could also simply use tables with regular scenarios where the ta
> Hello all
>
> rSquery aims to reduce the difficulties involved in writing selenium tests
> in cucumber environments for webapps that use jQuery.
>
> The project contains several methods to help you with writing javascript
> commands for selenium and javascript based tests for cucumber or even rSp
> I cannot seem to locate any documentation on how to implement the new
> table syntax otherwise I would not bother the list with this.
>
I'm not sure what you mean by "new" table syntax. The syntax for
tables hasn't really changed since it was introduced.
> I wish to write something like this:
>
> Andrew Premdas wrote:
>>
>> Seem to be having a problem with the new releases 0.3.5 which
>> completely breaks my rake tasks http://gist.github.com/112149.
>>
>> WIth the
>>
>> t.fork = true # Explicitly fork for cucumber 0.3.4 and rails
>>
>> lines added to the tasks none of my steps are recogn
> On May 15, 2009, at 4:25 AM, aslak hellesoy wrote:
>
>> To be honest, I don't remember what happened to AfterStep. I think we
>> had it at some point, but can't see it in the codebase. Did I remove
>> it? Or was that back in the pre-Cucumber days? Help me remem
> I'm trying to make sure that my cucumber selenium suite fails if my Rails
> app returns any 500 response codes. I'm working on what the best way to
> identify this state, but the question I'd like to put to the list is this:
> If I want to check for this error condition in an After or AfterStep,
http://github.com/aslakhellesoy/cucumber/blob/20021e90c892030c1a1b46e2d19024c3719af0ba/History.txt
Thanks Joseph!
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
http://github.com/aslakhellesoy/cucumber/blob/173506c4013a7d733c5b4924e7af3dcc49db2218/History.txt
Enjoy!
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
> I am running into this situation:
>
> Feature 1
>
> Scenario A
> ...
> Then we should have currency exchange rates for "USD" on file
> And we should ...
>
>
> Feature 2
>
> Scenario D
> ...
> Then we should have currency exchange rates for "USD" on file
> | code|
>
; From: rspec-users-boun...@rubyforge.org
> [mailto:rspec-users-boun...@rubyforge.org] On Behalf Of aslak hellesoy
> Sent: Tuesday, 12 May 2009 7:26 PM
> To: rspec-users
> Cc: Songkick Developers
> Subject: Re: [rspec-users] [cucumber] junit formatter
>
>
>
>
>
> On 12 May 2009
> Am I correct when I infer that the "Examples" keyword is now only valid
> in a Scenario Outline? If so, in what version did this change take
> place?
>From version 0.2.0 (released on 2009-03-18).
See History.txt for details. Excerpt:
* "More Examples" is gone. "Scenario" + "More Examples" is
> On 12 May 2009, at 05:29, Jones, Gareth wrote:
>
> Hi,
>>
>> I’ve knocked together a JUnit xml output formatter for cucumber – we’re
>> using it with Hudson and Ant, so it seemed like a good idea. It’s good
>> enough for our purposes, so I thought we should release it into the wild,
>> and see i
> Hi All
>
>
> > It seems to me that there's an opportunity for packaging together and
> > sharing steps, but am curious of folks thoughts on the best way to go
> about
> > this.
> >
> > Mike
> >
>
> Customer/Users are likely to have their 'own' language' and that
> providing library steps - could
> On Fri, May 8, 2009 at 10:24 AM, aslak hellesoy
> wrote:
> >> [ Matt Wynne: ]
> >> So are you saying we'd put the steps in a gem, then include them using
> require?
> >
> > Yes.
>
> Is there any reason not to accept them for inclusion in the C
On Fri, May 8, 2009 at 4:30 PM, Ingo Weiss wrote:
> Hi all,
>
> Often I find myself wishing there was a way to add comments to cucumber
> text features that are ignored by the parser. Is this possible somehow?
>
# Yes
# it is possible
# anywhere
Aslak
> Thanks!
> Ingo
>
>
>
> On 8 May 2009, at 09:12, aslak hellesoy wrote:
>
>
>>
>> On 8 May 2009, at 05:55, Mike Doel wrote:
>>
>> Cucumber is awesome and destined to rule the world. As that starts to
>> happen, has there been any thought of a mechanism for the community
> Hello,
>
> Can somebody help me out in how to use Taza framework with Flex
> applications? Following is the script to perform operations on Flex
> application, please let me know how to do the same with Taza frame work:
>
You have come to the wrong place - you're not even using RSpec. Try the
fu
>
> On 8 May 2009, at 05:55, Mike Doel wrote:
>
> Cucumber is awesome and destined to rule the world. As that starts to
>> happen, has there been any thought of a mechanism for the community to build
>> a library of common, generally useful steps that can be used across
>> projects? I've got stu
> On 7 May 2009, at 21:28, keith shaw wrote:
>
> Hey All,
>>
>> I am trying to set up cucumber to use the multiline step argument. I have
>> my test posted here : http://gist.github.com/108328.
>>
>
> You need to use 'Scenario Outline', not 'Scenario' if you're using an
> Examples table. I think
work.
> >
> > Andrew
> >
> > 2009/5/6 aslak hellesoy
> >>
> >>
> >> On Wed, May 6, 2009 at 9:20 AM, Andrew Premdas
> wrote:
> >>>
> >>> Having significant problems getting an upto date environment with
> >>&g
Folks,
I find it really hard to follow conversations that use top posting (
http://en.wikipedia.org/wiki/Posting_style).
If you have a [Cucumber] topic, please respond with inline comments. And use
plain text email - not html.
Thanks,
Aslak
___
rspec-us
> I have the following step that I want to re-use in several scenarios. It
> looks like this:
>
> When I submit the form
>|form_field_id |value|
>|billingAddress.email|mickey_mo...@test.com|
>|billingAddress.firstName|Mickey|
>|billingAddress.lastName
On Wed, May 6, 2009 at 9:20 AM, Andrew Premdas wrote:
> Having significant problems getting an upto date environment with cucumber
> and rspec since 0.3.0. I have put the relevant files including a backtrace
> in a gist http://gist.github.com/107586. I'd really appreciate it if
> someone could t
> Having significant problems getting an upto date environment with cucumber
> and rspec since 0.3.0. I have put the relevant files including a backtrace
> in a gist http://gist.github.com/107586. I'd really appreciate it if
> someone could take a look at this.
> All these features ran fine using
It's Ruby, not Cucumber that parses .rb files. (Even if you have ruby code
that uses the Cucumber API in them).
You have a Ruby syntax error. You missed the = sign after SCRIPT ;-)
Aslak
something_steps.rb
>
> TEST = 'A constant'
>
> puts TEST
>
> SCRIPT <<-'END_SCRIPT'
> ...
> END_SCRIPT
>
> Th
> Hi List,
> We didn't resolve this in the end, we rolled back to Cucumber 0.3.0; has
> anyone else seen anything similar?
>
Nobody else has reported anything similar on this mailing list.
Can you run with --backtrace on so we can see where the error is coming
from?
Can you also gist your features
> On Sun, May 3, 2009 at 10:42 PM, Mike Doel wrote:
>
>>
>> I also make use of FakeWeb in a couple places to do a similar thing for
>> the scraping of sites.
>
>
> FWIW, so does the maintainer of FakeWeb, Chris Kampmeier (with whom I
> work).
>
> Stubbing should be avoided when using Cucumber, if
On Sun, May 3, 2009 at 7:08 PM, James Byrne wrote:
> Aslak Hellesøy wrote:
>
> >
> > You only need this to start:
> >
> > +-features/
> > +-foo.feature
> >
>
> I realize this. I am not complaining. I just think that for a modest
I don't think anyone think you were complaining. Your question
> I'm just curious about this, since my solution involved stubbing a call to
> GeoIp.
>
> Is there a good rule of thumb for when you make exceptions to the 'no
> stubbing' philosophy of Cucumber?
>
This is the rule of thumb:
http://wiki.github.com/aslakhellesoy/cucumber/mocking-and-stubbing-with-c
On Sun, May 3, 2009 at 1:34 PM, James Byrne wrote:
> Aslak Hellesøy wrote:
> >> I use mkdir and touch.
> >>
> >
> > Me too
>
> Fine for those that know cucumber inside out. A bit sparse for the rest
> of creation.
>
You only need this to start:
+-features/
+-foo.feature
Then you can add som
> I don't know if this will interest anyone, but I thought it was a
> pretty cool use of Cucumber :)
>
OMG sooo cool.
Added here:
http://wiki.github.com/aslakhellesoy/cucumber/tutorials-and-related-blog-posts
Aslak
>
> I've posted a Blog article on how I use Cucumber to test an Erlang
> Server
> Hi,
>
> Given the hook:
>
> After do |scenario|
>
> end
>
> How do I get the name of the scenario from the scenario parameter?
>
> scenario.name doesn't work, and I looked through the source code and
> it was not immediately obvious to me.
>
You can call to_sexp on it and get it from there. Or
> Hi,
>
> Aslak twittered this NetBeans Cucumber module :
> http://members.chello.at/server/modules.html
>
> I have tried to manually install it, but NetBeans in complaining about:
>
> "Missing required modules for Plugin Cucumber Features:
> Generic Languages Framework [module org.netbeans.modules
On Wed, Apr 29, 2009 at 11:10 AM, Neema Cheriyath wrote:
> Thank you Aslak.
>
> Let me see whether I can make use of Background for implementing the
> dependency issue that I mentioned.
>
> I think implementing hooks in cucumber_java will be useful for us, since
> we can make use of that to get a
>
>
> On Sun, Apr 26, 2009 at 6:32 AM, aslak hellesoy
> wrote:
>
>>
>> I recently added pure java support to Cucumber, meaning steps can be
>> written in Java instead of Ruby.
>> http://github.com/aslakhellesoy/cucumber_java/tree/master
>>
>
&
> Hey Ben,
>
> It'd be kinda cool if there was a sort of before and after for a feature
> rather than each scenario. Is there?
>
I think that would be particularly *un*cool actually, because people would
start using it without understanding the implications.
Implications: Coupled, brittle scenario
#x27;@tag') executes before each scenario
> >
> > Is there a way to execute a block once before each feature, but not
> > before each scenario?
> >
> > On Apr 28, 7:08 am, aslak hellesoy wrote:
> >
> > > > Hi -- is it possible to set before and after bloc
tag') executes before each scenario
>
> Is there a way to execute a block once before each feature, but not
> before each scenario?
>
No :-)
>
>
> On Apr 28, 7:08 am, aslak hellesoy wrote:
> > > Hi -- is it possible to set before and after blocks for individual
> Hi -- is it possible to set before and after blocks for individual feature
> files?
Yes. Use tagged hooks: http://wiki.github.com/aslakhellesoy/cucumber/hooks
Aslak
>
> I've tried putting them in step files, but they just get called before
> everything, like they'd been declared in env.rb, w
Bump?
On Sun, Apr 26, 2009 at 5:04 PM, aslak hellesoy wrote:
> On Sat, Apr 25, 2009 at 5:00 PM, Phlip wrote:
> > Aslak Hellesøy wrote:
> >
> >>> require File.dirname(__FILE__) + '/../test_helper'
> >>>
> >>> class CukeFeature
On Tue, Apr 28, 2009 at 11:11 AM, Jérémy Kaz wrote:
> Hi there !
> I was wondering if the way I test the validation of my forms is right or
> not. So here's a little example :
> Imagine you have a form with some validations designed to create some
> object. You want to test it using Scenario Outl
> Sorry about bad formating, I pasted it and haven't checked ...
>
> Well, you may have understood that the "<" thing is pointing to the
> 'And the VAT "" ...' line, the 1st col of 2nd line in the
> examples is a blank one, and the last line is cut into 2
Sorry, I'm a little lost here. Was th
>
> My actual question is, Is there any api that the cucumber offer which
> can be accessed to get the necessary data in the run time.
>
http://wiki.github.com/aslakhellesoy/cucumber/hooks
>
> --
> Posted via http://www.ruby-forum.com/.
> ___
> rspec-u
> Hi,
>
> I need to create a custom report based on cucumber output. I am thinking
> of two ways to do this.
>
>
> 1. Either I have to write a java application to fetch the values like
> execution time for each scenarios along with its name, status etc from
> cucumber in runtime. Is that possible?
>
>
> 2009/4/28 Andrew Premdas
>
>> I guess I'll just have to use a global, perhaps trying to freeze them in
>> production. Just thought there might be something that might be an
>> alternative. Might have a look at using a stub if that doesn't work. Thanks
>> for your input
>
>
> You could pass t
On Tue, Apr 28, 2009 at 1:14 AM, Kero van Gelder wrote:
> > This is the umpteenth time polyglot messes up. Polyglot is broken broken
> > broken. Cucumber doesn't use it, but can't escape it, because Treetop
> > *always* loads it. I have tried to lobby the Treetop developers to make
> it
> > optio
1 - 100 of 604 matches
Mail list logo