Re: [rspec-users] Need Help

2009-10-07 Thread aslak hellesoy
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

Re: [rspec-users] at_exit in spec file?

2009-10-29 Thread aslak hellesoy
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

Re: [rspec-users] cucumber table diff haml problem

2009-11-03 Thread aslak hellesoy
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

Re: [rspec-users] Cucumber Cygwin

2009-11-23 Thread aslak hellesoy
> 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"

Re: [rspec-users] Cucumber Cygwin

2009-11-23 Thread aslak hellesoy
> 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

Re: [rspec-users] be_true and be_false are suddenly undefined

2009-12-25 Thread aslak hellesoy
> 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

Re: [rspec-users] be_true and be_false are suddenly undefined

2009-12-25 Thread aslak hellesoy
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

Re: [rspec-users] Cucumber Scenario syntax

2010-02-27 Thread aslak hellesoy
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

Re: [rspec-users] how to mock a Net::Http object?

2010-03-02 Thread aslak hellesoy
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

Re: [rspec-users] Gem tutorials / setting up rspec in a gem

2010-03-30 Thread aslak hellesoy
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

Re: [rspec-users] How I make browser act-as-robot-driven ?

2010-05-20 Thread aslak hellesoy
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

Re: [rspec-users] Using RSpec and Cucumber with Rails 3 Engines

2010-06-28 Thread aslak hellesoy
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

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

2010-10-11 Thread aslak hellesoy
> ## 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

Re: [rspec-users] Cucumber problems

2011-01-20 Thread aslak hellesoy
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

Re: [rspec-users] given-when-then-and syntax support in Rspec

2011-03-27 Thread aslak hellesoy
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

Re: [rspec-users] Cucumber and rspec, do cucumber step definitions use rspec?

2011-05-10 Thread aslak hellesoy
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

Re: [rspec-users] Cucumber and rspec, do cucumber step definitions use rspec?

2011-05-10 Thread aslak hellesoy
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

Re: [rspec-users] newbie cucumber tutorial

2011-11-16 Thread aslak hellesoy
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

Re: [rspec-users] newbie cucumber tutorial

2011-11-16 Thread aslak hellesoy
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

Re: [rspec-users] cucumber is_admin? testing

2011-11-23 Thread aslak hellesoy
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 > >

Re: [rspec-users] cucumber is_admin? testing

2011-11-23 Thread aslak hellesoy
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/. >

Re: [rspec-users] cucumber is_admin? testing

2011-11-23 Thread aslak hellesoy
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

Re: [rspec-users] cucumber is_admin? testing

2011-11-24 Thread aslak hellesoy
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/. > __

Re: [rspec-users] Rspec for this class

2012-01-08 Thread aslak hellesoy
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

Re: [rspec-users] testing instance variables that are set inside views

2007-06-30 Thread aslak hellesoy
@header is an implementation detail of your view that you shouldn't care about in your view spec at all. I recommend you use the have_tag matcher instead to verify what content gets rendered as expected. Aslak On 6/29/07, Jeremy Stephens <[EMAIL PROTECTED]> wrote: > Hi all, > > In my view specs (

Re: [rspec-users] Acts as Authenticated

2007-06-30 Thread aslak hellesoy
On 6/26/07, Anonymous <[EMAIL PROTECTED]> wrote: > I am using Acts as Authenticated and I need to call current_user in my views. > How do I mock current_user and other methods of Acts as Authenticated in my > view specs? Hi Anon See "Mocking and stubbing helpers" http://rspec.rubyforge.org/docum

Re: [rspec-users] rspec for the svn-less (ruby version)

2007-07-01 Thread aslak hellesoy
On 7/2/07, barsalou <[EMAIL PROTECTED]> wrote: > A couple of things: > > - it is defaulted to 1.0.5, but if there was a "current" I could > probably use that instead. > http://rspec.rubyforge.org/download.html says 1.0.5, I'll try to remember to mention svn://rubyforge.org/var/svn/rspec/tags/CURRE

Re: [rspec-users] testing instance variables that are set inside views

2007-07-04 Thread aslak hellesoy
On 7/3/07, Patrick Ritchie <[EMAIL PROTECTED]> wrote: > > Hi, > > I think @header may not be an implementation detail in this case. > > If your layout looks like this: > > ... > > <%= @header || 'Default Title' %> > > ... > > And the view we are testing looks like this: > > ... > <%= @

Re: [rspec-users] Outside-In with RSpec on Rails

2007-07-10 Thread aslak hellesoy
On 7/10/07, Marcus Ahnve <[EMAIL PROTECTED]> wrote: > Whether or not to start with the view is a topic of great debate. Many > agile luminaries propose waiting with the ui for as long as possible, > whereas 37Signals for example won't start coding without a full HTML > mockup. > I wouldn't call my

Re: [rspec-users] "they" synonym for "it"?

2007-07-11 Thread aslak hellesoy
On 7/11/07, Ashley Moran <[EMAIL PROTECTED]> wrote: > I've noticed that I phrase a lot of shared behaviours in plural, eg > >describe "All payment_details views" > > How about a "they" alias to "it" so you can write > >describe "All payment_details views", :shared => true do > they "sh

Re: [rspec-users] Agh, this is annoying. Why is this happening?

2007-07-12 Thread aslak hellesoy
This doesn't make sense: Task.should_receive(:user_id).with(@user.id).and_return(true) It means that you expect this: foo = Task.user_id(@user_id) # foo will be true I suspect you rather want this to happen: @task.user_id = @user_id In which case your mock setup should be: @task.shou

Re: [rspec-users] "they" synonym for "it"?

2007-07-12 Thread aslak hellesoy
On 7/12/07, Anthony Carlos <[EMAIL PROTECTED]> wrote: > If you guys don't mind, I'm going to create a sample web page with > this concept on it, stealing from Ashley and David's writings. If > people like it, perhaps we can get it included in the documentation. > Go ahead, that would be great! As

Re: [rspec-users] spec for Rails library

2007-07-13 Thread aslak hellesoy
On 7/13/07, Gregory Murphy <[EMAIL PROTECTED]> wrote: > How does one write a spec for a Rails library? > Umm, just like you would for any other Ruby library. Can you be more specific? Aslak > // Gregory > ___ > rspec-users mailing list > rspec-users@ru

Re: [rspec-users] spec for Rails library

2007-07-13 Thread aslak hellesoy
On 7/13/07, Tom Stuart <[EMAIL PROTECTED]> wrote: > On 13 Jul 2007, at 20:31, Gregory Murphy wrote: > > I'm referring in particular to RSpec for Rails. It generates a > > number of directories in a Rails app, with a place for model specs, > > for > > example, and a rake task to run them, e.g. 'rake

Re: [rspec-users] expect_render twice in views

2007-07-14 Thread aslak hellesoy
On 7/14/07, Jed Hurt <[EMAIL PROTECTED]> wrote: > I found this: > > controller.expect_render(:partial => 'thing', :collection => things).once > > but I am trying to expect_render twice in my view spec: > > template.expect_render(:partial => 'order_details').twice > > > This doesn't work as the temp

Re: [rspec-users] RSpec makes me want to write better code

2008-09-27 Thread aslak hellesoy
On Sat, Sep 27, 2008 at 10:32 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Sat, Sep 27, 2008 at 2:29 PM, Mark Wilden <[EMAIL PROTECTED]> wrote: >> On Sat, Sep 27, 2008 at 11:26 AM, Dan North <[EMAIL PROTECTED]> wrote: >> >>> It seems these conversations come up time and again because Rails >

Re: [rspec-users] webrat the way to go?

2008-09-28 Thread aslak hellesoy
On Mon, Sep 29, 2008 at 8:46 AM, Willem van den Ende <[EMAIL PROTECTED]> wrote: > On Sun, 2008-09-28 at 22:24 +0200, Willem van den Ende wrote: > >> When I go to invitation/new, I see the Subject field, but WebRat doesn't... : > >> When I fill in "Subject" with "My invitation subject" >>

Re: [rspec-users] webrat the way to go?

2008-09-29 Thread aslak hellesoy
On Mon, Sep 29, 2008 at 9:07 AM, Willem van den Ende <[EMAIL PROTECTED]> wrote: > Hi Aslak, > > thanks for responding (more below). > > On Mon, 2008-09-29 at 08:48 +0200, aslak hellesoy wrote: >> On Mon, Sep 29, 2008 at 8:46 AM, Willem van den Ende >> <[EMAIL

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

2008-09-29 Thread aslak hellesoy
On Mon, Sep 29, 2008 at 11:29 AM, Priit Tamboom <[EMAIL PROTECTED]> wrote: > Hi! > > I'm using cucumber + selenium and I love it. However I'm looking to > add some methods (example: click_and_wait etc) to the lib. Therefore > looked around a bit and I got two questions: > > Firstly about rspec-ui,

Re: [rspec-users] Lot's o' questions about Cucumbert

2008-09-29 Thread aslak hellesoy
On Mon, Sep 29, 2008 at 3:14 PM, Fernando Perez <[EMAIL PROTECTED]> wrote: > Thanks Dave, I am starting to understand better the workflow to adopt > with cucumber and webrat. > > By the way I am having some issues with the: I should see "..." regexp. > If what I want to see has double quotes or bra

Re: [rspec-users] Cucumber::ArityMismatchError

2008-09-30 Thread aslak hellesoy
On Tue, Sep 30, 2008 at 3:59 PM, aidy lewis <[EMAIL PROTECTED]> wrote: > Hi, > > We are receiving an ArityMismatchError when we feel we have a valid RegEx > > error > C:/svnprojects/olc_stories/lib/framework/common_steps/verification_steps.rb:48:in > `/verify the email with the subject of '[\w\x2E\

Re: [rspec-users] Cucumber: please make "gem install aslakhellesoy-cucumber" or "gem install cucumber" work again

2008-09-30 Thread aslak hellesoy
On Tue, Sep 30, 2008 at 9:02 PM, Evan David Light <[EMAIL PROTECTED]> wrote: > Subject says most of it. I'd love to use Cucumber in my project but I need > to be able to install it in a Rails app and by a particular version number. > You can do that with git pull and git checkout. Would it help i

Re: [rspec-users] Cucumber: please make "gem install aslakhellesoy-cucumber" or "gem install cucumber" work again

2008-10-01 Thread aslak hellesoy
On Wed, Oct 1, 2008 at 5:11 PM, Chris Flipse <[EMAIL PROTECTED]> wrote: > On Tue, Sep 30, 2008 at 5:20 PM, aslak hellesoy <[EMAIL PROTECTED]> > wrote: >> >> On Tue, Sep 30, 2008 at 9:02 PM, Evan David Light >> <[EMAIL PROTECTED]> wrote: >> > Subje

Re: [rspec-users] Cucumber: please make "gem install aslakhellesoy-cucumber" or "gem install cucumber" work again

2008-10-01 Thread aslak hellesoy
On Wed, Oct 1, 2008 at 5:30 PM, Chris Flipse <[EMAIL PROTECTED]> wrote: > > > On Wed, Oct 1, 2008 at 11:20 AM, aslak hellesoy <[EMAIL PROTECTED]> > wrote: >> >> On Wed, Oct 1, 2008 at 5:11 PM, Chris Flipse <[EMAIL PROTECTED]> wrote: >> > On Tue, S

Re: [rspec-users] [ANN] Cucumber Textmate Bundle

2008-10-01 Thread aslak hellesoy
On Wed, Oct 1, 2008 at 5:54 PM, Ben Mabey <[EMAIL PROTECTED]> wrote: > Matt Wynne wrote: >> >> Is it possible to rename the project maybe? I know you can have dots in >> the name - e.g. http://github.com/thoughtworks/cruisecontrol.rb though I >> think I may have heard this was a restriction that wa

Re: [rspec-users] Cucumber: please make "gem install aslakhellesoy-cucumber" or "gem install cucumber" work again

2008-10-01 Thread aslak hellesoy
On Wed, Oct 1, 2008 at 7:03 PM, Luis Lavena <[EMAIL PROTECTED]> wrote: > On Wed, Oct 1, 2008 at 12:30 PM, Chris Flipse <[EMAIL PROTECTED]> wrote: >> >> >> On Wed, Oct 1, 2008 at 11:20 AM, aslak hellesoy <[EMAIL PROTECTED]> >> wrote: >>> &g

Re: [rspec-users] Slides from my talk on Cucumber + Celerity + RSpec tonight

2008-10-01 Thread aslak hellesoy
On Thu, Oct 2, 2008 at 5:30 AM, Ashley Moran <[EMAIL PROTECTED]> wrote: > Hi all > > Just ran a session known as a "huddle" in GeekUp terms. GeekUp[1] is a > group of monthly events in North West England. The Sheffield one starts > with a huddle every month, which is intended to have more audienc

Re: [rspec-users] Newbie's question about generated features by cucumber in Rails

2008-10-04 Thread aslak hellesoy
On Sat, Oct 4, 2008 at 6:22 PM, Lian Liming <[EMAIL PROTECTED]> wrote: > Hi all, > > I am new to rspec and trying to use cucumber to learn writingfeatures. > I follow the wiki page > http://github.com/aslakhellesoy/cucumber/wikis/ruby-on-rails to start > my first feature. > > The command "ruby scri

[rspec-users] Cucumber 0.1.7 released

2008-10-05 Thread aslak hellesoy
I just released 0.1.7 as a gem. (As usual, it will take a few hours before it rsyncs around the world). Changes are here: http://github.com/aslakhellesoy/cucumber/tree/v0.1.7/History.txt Thanks to everyone who's contributed with feedback and patches! Cheers, Aslak ___

Re: [rspec-users] cucumber and html reports

2008-10-07 Thread aslak hellesoy
On Tue, Oct 7, 2008 at 6:47 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Tue, Oct 7, 2008 at 11:39 AM, aidy lewis <[EMAIL PROTECTED]> wrote: >> Hi, >> >> Is there anyway I can cycle through all the features in a folder and >> pipe to html >> through the command line? >> >> For this: >> C:\Sv

Re: [rspec-users] cucumber and html reports

2008-10-07 Thread aslak hellesoy
On Tue, Oct 7, 2008 at 6:39 PM, aidy lewis <[EMAIL PROTECTED]> wrote: > Hi, > > Is there anyway I can cycle through all the features in a folder and > pipe to html > through the command line? > > For this: > C:\SvnProjects\my_application\features> cucumber *.feature --format html > > my_applicatio

Re: [rspec-users] cucumber and html reports

2008-10-07 Thread aslak hellesoy
On Tue, Oct 7, 2008 at 7:14 PM, aidy lewis <[EMAIL PROTECTED]> wrote: > Guys. > On 07/10/2008, aidy lewis <[EMAIL PROTECTED]> wrote: > >> Thanks for your response. >> >> That doesn't seem to report for me (maybe it is because one of my >> tests fails - throws an exception and then writes to the c

Re: [rspec-users] cucumber and fixtures

2008-10-08 Thread aslak hellesoy
On Wed, Oct 8, 2008 at 3:16 PM, Daniel Higginbotham <[EMAIL PROTECTED]> wrote: > Is it possible to use spec fixtures with Cucumber, and if so, how? > Google for cucumber fixtures http://www.ruby-forum.com/topic/165215 http://www.ruby-forum.com/topic/165777 > Thanks, > Daniel Higginbotham > -- >

Re: [rspec-users] Rspec @ UC Berkley

2008-10-10 Thread aslak hellesoy
On Fri, Oct 10, 2008 at 10:51 AM, Dan North <[EMAIL PROTECTED]> wrote: > That's actually a pretty awesome endorsement. We should put something on the > website: Who is using rspec? > Good idea! Thanks for doing that, Dan :-) Aslak > > 2008/10/9 Pat Maddox <[EMAIL PROTECTED]> >> >> Scott Taylor <

Re: [rspec-users] Any Plans on Tag support in Cucumber

2008-10-14 Thread aslak hellesoy
On Tue, Oct 14, 2008 at 8:47 AM, wei wei <[EMAIL PROTECTED]> wrote: > Hi, > ThoughtWorks just released the auto test toolset Twist, the "tagging" > feature seems pretty > useful, > http://studios.thoughtworks.com/twist-agile-test-automation/twist-features-and-benefits > "Tags > allow you to organi

Re: [rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber

2008-10-14 Thread aslak hellesoy
On Tue, Oct 14, 2008 at 9:38 AM, Thomas Marek <[EMAIL PROTECTED]> wrote: > No advice on that? > > Should i open a ticket on Lighthouse? Please do. > I also would try to implement that... > Great! Some suggestions: I'd like to be able to do something like this: After do # cucumber_scenario wo

Re: [rspec-users] [cucumber] Is it possbile to access scenario name in steps?

2008-10-14 Thread aslak hellesoy
On Tue, Oct 14, 2008 at 6:40 PM, wei wei <[EMAIL PROTECTED]> wrote: > One of my examples now is like below > ### 1001.feature > Feature: 1001 > 1001 is the internal id for QAs to identify case > Scenario: 1001 > Given the title is "function1_1001" > . > ### function1.steps > Given

Re: [rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber

2008-10-14 Thread aslak hellesoy
On Tue, Oct 14, 2008 at 9:52 PM, Zach Dennis <[EMAIL PROTECTED]> wrote: > On Tue, Oct 14, 2008 at 3:39 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: >> On Tue, Oct 14, 2008 at 1:49 PM, aslak hellesoy >> <[EMAIL PROTECTED]> wrote: >>> On Tue, Oct

Re: [rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber

2008-10-14 Thread aslak hellesoy
On Tue, Oct 14, 2008 at 5:29 PM, Michael Latta <[EMAIL PROTECTED]> wrote: > Why use a cucumber_scenario method when the After method could just pass it > to the block? > Good idea! > Michael > > > On Oct 14, 2008, at 1:31 AM, aslak hellesoy wrote: > >> On

Re: [rspec-users] extend Cucumber's arguments

2008-10-15 Thread aslak hellesoy
On Wed, Oct 15, 2008 at 12:26 PM, aidy lewis <[EMAIL PROTECTED]> wrote: > Hi, > > We would like to pass in some additional command line arguments into > Cucumber (for example to specify which browser to run the tests with). > > Is there any way to extend Cucumber's arguments, or could you suggest >

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

2008-10-16 Thread aslak hellesoy
On Thu, Oct 16, 2008 at 10:28 PM, Ashley Moran <[EMAIL PROTECTED]> wrote: > Hi > > Hope this isn't OT. I'm currently contemplating using the Dojo[1] > JavaScript framework, and I suspect it's powerful enough that using Cucumber > features and Celerity alone will quickly leave me wanting lower-leve

Re: [rspec-users] Cucumber "standard base" setup?

2008-10-17 Thread aslak hellesoy
On Sat, Oct 18, 2008 at 2:34 AM, William Tozier <[EMAIL PROTECTED]> wrote: > I'm trying to set up cucumber so we can try it in some Ruby automation > scripts I'm working on. These will be straight Ruby, for use in BBEdit and > TextMate (on the Mac). > > NOT Rails. > > The big early-stage stumbling

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

2008-10-18 Thread aslak hellesoy
On Sat, Oct 18, 2008 at 10:25 PM, Stephen Eley <[EMAIL PROTECTED]> wrote: > On Sat, Oct 18, 2008 at 2:13 PM, Zach Dennis <[EMAIL PROTECTED]> wrote: >> >> Given Joe is a staff member without the '$privilege$' privilege >> When I $request$ $path$ as Joe >> Then I am notified that access was denied

Re: [rspec-users] Running Cucumber with a Rails Rake task

2008-10-18 Thread aslak hellesoy
On Sat, Oct 18, 2008 at 10:33 PM, Ben Emson <[EMAIL PROTECTED]> wrote: > Hi All > > I've just started experimenting with Cucumber and its great. > However I wasn't quite sure how I should integrate it into my Rails > application. > Have you read this? http://github.com/aslakhellesoy/cucumber/wikis

Re: [rspec-users] Too Clever?

2008-10-23 Thread aslak hellesoy
On Thu, Oct 23, 2008 at 11:20 PM, Michael Latta <[EMAIL PROTECTED]> wrote: > That works when running one at a time. When I want to run all my specs how > do I ensure the requires are applied to the appropriate features? It is not > all my stories, only a subset that are dual-purposed. Do I need

Re: [rspec-users] Too Clever?

2008-10-23 Thread aslak hellesoy
On Thu, Oct 23, 2008 at 7:20 PM, Michael Latta <[EMAIL PROTECTED]> wrote: > It appears we were too clever, but I think this would be a reasonable use of > stories. > > We tried to have a story file run with 2 different sets of steps to use the > same story against both the UI using selenium and aga

Re: [rspec-users] cucumber feature description

2008-10-26 Thread aslak hellesoy
On Sun, Oct 26, 2008 at 3:56 PM, Stephen Eley <[EMAIL PROTECTED]> wrote: > On Sat, Oct 25, 2008 at 7:19 PM, Ben Mabey <[EMAIL PROTECTED]> wrote: >> >> A more qualified person may want to answer your question, but my short >> explanation of the change of the default narrative layout is to state the

Re: [rspec-users] Testing item links in Webrat (was: Cucumber)

2008-10-26 Thread aslak hellesoy
On Sun, Oct 26, 2008 at 11:30 PM, Mark Thomson <[EMAIL PROTECTED]> wrote: > I have an index template that contains a tabulated list of database items, > each of which has an associated "display" link that enables the item to be > displayed via a "show" action. In Cucumber I know how to test that th

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

2008-10-29 Thread aslak hellesoy
On Tue, Oct 28, 2008 at 6:08 PM, Pat Maddox <[EMAIL PROTECTED]> wrote: > When you do end-to-end acceptance testing with Selenium, I think it > should be run against a production environment. Not THE production > environment, mind you, but simply a new Rails app running with > RAILS_ENV=production.

Re: [rspec-users] Working outside-in with Cucumber and RSpec

2008-10-29 Thread aslak hellesoy
On Wed, Oct 29, 2008 at 10:32 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Tue, Oct 28, 2008 at 2:32 AM, Ashley Moran > <[EMAIL PROTECTED]> wrote: >> >> On Oct 27, 2008, at 5:20 pm, Pat Maddox wrote: >> >>> When it comes to controllers specs, mocks provide the most value by >>> isolating fro

Re: [rspec-users] Gems installation

2008-10-29 Thread aslak hellesoy
On Mon, Oct 27, 2008 at 3:54 PM, Juanma Cervera <[EMAIL PROTECTED]> wrote: > Hello. > > I have a problem trying to use cucumber with webrat. > I thought I could use the gems versions of rspec, rspec-rails, cucumber > and webrat, in fact I think that I could manage to do it two weeks ago, > but now

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

2008-10-30 Thread aslak hellesoy
On Tue, Oct 28, 2008 at 11:43 AM, aidy lewis <[EMAIL PROTECTED]> wrote: > Hi Alsak, > > 2008/10/27 Aslak Hellesøy <[EMAIL PROTECTED]>: >> What version/revision? > > I am on 0.1.7; I guess I need to upgrade. If this is the case, will I > need to use the Trunk or is there a gem? > Changelog: http://

Re: [rspec-users] [Cucumber]: require features from mutliple folders

2008-10-30 Thread aslak hellesoy
On Wed, Oct 29, 2008 at 4:39 PM, aidy lewis <[EMAIL PROTECTED]> wrote: > Hi, > > I have different projects with features related to those projects in > different folders > > /project_1 > /project_2 > /steps > > The steps cover both projects > > How do I get Cucumber to require all feature

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

2008-11-01 Thread aslak hellesoy
On Sat, Nov 1, 2008 at 6:02 AM, Pau Cor <[EMAIL PROTECTED]> wrote: > When I run `rake features` after adding cucumber v0.1.8 to my rails app > (as a plugin), I get success. But when I upgrade to edge, I get this > error: > > " > |/home/paul/sc/ror/cebu_heroku/vendor/plugins/cucumber/bin/../lib/cucu

Re: [rspec-users] Caboosers drop RSpec

2008-11-04 Thread aslak hellesoy
On Tue, Nov 4, 2008 at 4:20 PM, Steven Baker <[EMAIL PROTECTED]> wrote: >>> Never let the facts get it the way of a good headline? > > This is typical of rubyflow. I wouldn't worry about it too much. > > It was only a matter of time before the unfortunate political climate > of the Rails community

Re: [rspec-users] Caboosers drop RSpec

2008-11-04 Thread aslak hellesoy
On Tue, Nov 4, 2008 at 10:39 AM, Tom Stuart <[EMAIL PROTECTED]> wrote: > Hi, > > Any responses to > http://blog.caboo.se/articles/2008/11/4/we-ve-stopped-using-rspec ? How much > of this is due to legitimate bugs/problems versus unfortunate circumstances? > Feels kind of worrying that they haven't

Re: [rspec-users] Cucumber: Why rake features needs to call db:test:prepare?

2008-11-04 Thread aslak hellesoy
On Wed, Nov 5, 2008 at 12:16 AM, Fernando Perez <[EMAIL PROTECTED]> wrote: > I am missing something here. Using PostgreSQL, when I remove this line > from the rake task, I don't see the DB being populated although I do > invoke create! on some models. > Vanilla Rails test:* tasks do the same, as d

Re: [rspec-users] Caboosers drop RSpec

2008-11-04 Thread aslak hellesoy
On Wed, Nov 5, 2008 at 1:01 AM, Ashley Moran <[EMAIL PROTECTED]> wrote: > > On Nov 04, 2008, at 11:09 pm, Dr Nic wrote: > >> On Nov 5, 1:55 am, "Luis Lavena" <[EMAIL PROTECTED]> wrote: >>> >>> Given a problem I have with RSpec >>> And I post to the mailing list >>> When noone answer my post >>> And

Re: [rspec-users] cucumber docs

2008-11-06 Thread aslak hellesoy
On Thu, Nov 6, 2008 at 11:51 PM, Tim Walker <[EMAIL PROTECTED]> wrote: > Thanks guys, I may have overlooked some of the stuff there. A lot of > what I was looking for was in the "Step Organization" page. > > Still not clear on some of the dynamic substitutions and syntax, etc. > I just jotted down

Re: [rspec-users] cucumber docs

2008-11-07 Thread aslak hellesoy
sts that reproduce them and break the > build, treated like any other story. Your work makes all this > possible. > Can I quote you on this? I need it for my campaign. Aslak > Sincerely, > > Tim > > On Thu, Nov 6, 2008 at 4:38 PM, aslak hellesoy <[EMAIL PROTECTED]> w

Re: [rspec-users] rspec gem vs "rspec plugin" vs "rspec-rails plugin" ???

2008-11-07 Thread aslak hellesoy
On Fri, Nov 7, 2008 at 12:56 PM, aslak hellesoy <[EMAIL PROTECTED]> wrote: > On Fri, Nov 7, 2008 at 11:23 AM, Greg Hauptmann > <[EMAIL PROTECTED]> wrote: >> so just to be clear are you saying: >> >> * rspec gem => All that is need for Ruby on Rails Rspec

Re: [rspec-users] rspec gem vs "rspec plugin" vs "rspec-rails plugin" ???

2008-11-07 Thread aslak hellesoy
On Fri, Nov 7, 2008 at 11:23 AM, Greg Hauptmann <[EMAIL PROTECTED]> wrote: > so just to be clear are you saying: > > * rspec gem => All that is need for Ruby on Rails Rspec work > * 'rspec plugin' => not needed (functionality in gem) > * 'rspec-rails' plugin => not needed (functionality in gem) > >

Re: [rspec-users] Sharing the little dialects we write in Cucumber

2008-11-08 Thread aslak hellesoy
On Sat, Nov 8, 2008 at 11:01 AM, Matt Wynne <[EMAIL PROTECTED]> wrote: > The common_webrat.rb steps file that comes with cucumber when you add it to > rails really inspired our team. > > We've extended it a fair bit to do various other things to check the content > of a page such as [1] which enabl

Re: [rspec-users] Installing rspec, cucumber, et al.

2008-11-11 Thread aslak hellesoy
On Tue, Nov 11, 2008 at 9:00 PM, James B. Byrne <[EMAIL PROTECTED]> wrote: > I am confused. I ran this in my rails project root: > > $ git submodule status > 3b76fda741dfe2de84b4d5a33766653589ad36fb vendor/plugins/rspec > (1.1.4-22-g3b76fda) > 5adb47e5bed39569b435fadf8c34bd836d4287d3 vendor/plugi

[rspec-users] ANN Cucumber 0.1.9

2008-11-12 Thread aslak hellesoy
I'm pleased to announce Cucumber 0.1.9 - full changelog here: http://github.com/aslakhellesoy/cucumber/tree/v0.1.9/History.txt gem install cucumber (As usual, the gem will take a few hours to rsync around the world). With this release Cucumber supports 19 natural languages! Cucumber is now repres

Re: [rspec-users] Cucumber Scaffolds

2008-11-12 Thread aslak hellesoy
On Wed, Nov 12, 2008 at 5:17 PM, James B. Byrne <[EMAIL PROTECTED]> wrote: > I have installed all of the various bit and pieces for rspec and cucumber > and have used: > > script/generate feature Frooble name color description > > To create a dummy feature and related steps. Now, while I have been

Re: [rspec-users] Cucumber: The Mysteries of Before(), After(), World() etc

2008-11-12 Thread aslak hellesoy
On Wed, Nov 12, 2008 at 2:12 PM, Matt Wynne <[EMAIL PROTECTED]> wrote: > My use case is that I want to be able to use a Logging::Logger[1] within my > scenario code. > > I can create the logger explicitly within the step block, but this is a > hackaround. > > I think I could monkey-patch Cucumber::

Re: [rspec-users] Cucumber Scaffolds

2008-11-12 Thread aslak hellesoy
On Wed, Nov 12, 2008 at 6:46 PM, Mark Wilden <[EMAIL PROTECTED]> wrote: > On Wed, Nov 12, 2008 at 9:27 AM, James B. Byrne <[EMAIL PROTECTED]> > wrote: > >> >> Feature: Manage entities # features/manage_entities.feature > > This is just a side note, but is "manage entities" really a feature? It Go

Re: [rspec-users] Cucumber: The Mysteries of Before(), After(), World() etc

2008-11-13 Thread aslak hellesoy
On Thu, Nov 13, 2008 at 3:59 PM, Peter Jaros <[EMAIL PROTECTED]> wrote: > On Wed, Nov 12, 2008 at 8:59 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: >> On Wed, Nov 12, 2008 at 7:30 AM, aslak hellesoy >> <[EMAIL PROTECTED]> wrote: >>> World do >>

Re: [rspec-users] Selecting a date with Webrat

2008-11-13 Thread aslak hellesoy
On Thu, Nov 13, 2008 at 8:20 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Thu, Nov 13, 2008 at 1:14 PM, Ben Mabey <[EMAIL PROTECTED]> wrote: >> Mike Sassak wrote: >>> >>> Hi, >>> >>> I'm writing a scenario that needs to select date values from a form >>> created with Rails' form_for() method

Re: [rspec-users] `add_scenario': wrong, number of arguments (1 for 2)

2008-11-18 Thread aslak hellesoy
On Wed, Nov 19, 2008 at 2:46 AM, Bret Pettichord <[EMAIL PROTECTED]> wrote: > Ben Mabey wrote: >> >> Are you using the latest cucumber from github? > > Yes. I did a git pull and reproduced the error right before reporting it. > This was fixed three days ago (!?) http://github.com/aslakhellesoy/cuc

Re: [rspec-users] `add_scenario': wrong, number of arguments (1 for 2)

2008-11-18 Thread aslak hellesoy
On Wed, Nov 19, 2008 at 3:03 AM, Bret Pettichord <[EMAIL PROTECTED]> wrote: > Ben Mabey wrote: >> >> If that is not the issue please open a ticket on Lighthouse. > > I tried. > > lighthouse error elaborate? > > > ___ > rspec-users mailing list > rspec-u

Re: [rspec-users] `add_scenario': wrong, number of arguments (1 for 2)

2008-11-19 Thread aslak hellesoy
On Wed, Nov 19, 2008 at 5:23 PM, Bret Pettichord <[EMAIL PROTECTED]> wrote: > aslak hellesoy wrote: >> >> On Wed, Nov 19, 2008 at 2:46 AM, Bret Pettichord <[EMAIL PROTECTED]> >> wrote: >> >>> >>> Ben Mabey wrote: >>> >>>&g

Re: [rspec-users] specifying which button webrat should press

2008-11-19 Thread aslak hellesoy
On Thu, Nov 20, 2008 at 4:32 AM, Pau Cor <[EMAIL PROTECTED]> wrote: > I was writing a feature in which I had webrat push a button. However, > there are many buttons on this page with the same text. I wanted to > specify which one would be push in as close a way I could to the way a > person would d

Re: [rspec-users] Cucumber, Webrat and http basic auth

2008-11-20 Thread aslak hellesoy
On Thu, Nov 20, 2008 at 11:32 AM, kwe <[EMAIL PROTECTED]> wrote: > Starting out with Cucumber and webrat and seem to be hitting a problem > with a resource protected with http basic auth. > > i.e. > > The following feature.. > > Feature: Manage Pages > In order to add a reference pages > As a adm

Re: [rspec-users] LinkedIn Group

2008-11-20 Thread aslak hellesoy
On Thu, Nov 20, 2008 at 11:57 AM, Erik Terpstra <[EMAIL PROTECTED]> wrote: > I really like the idea of LinkedIn BDD and RSpec groups. > Is somebody of the core team willing to create these? > Ashley Moran has already created an RSpec group: http://www.linkedin.com/groups?about=&gid=1300277 Why do

Re: [rspec-users] LinkedIn Group

2008-11-20 Thread aslak hellesoy
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

Re: [rspec-users] Cucumber, Webrat and http basic auth

2008-11-20 Thread aslak hellesoy
> > In a Rails sense. > Sorry - should have read your mail more closely. Then it might be a bug. Aslak > > On Nov 20, 11:11 am, "aslak hellesoy" <[EMAIL PROTECTED]> > wrote: >> On Thu, Nov 20, 2008 at 11:32 AM, kwe <[EMAIL PROTECTED]> wrote: >>

Re: [rspec-users] Missing method implementation_backtrace

2008-11-23 Thread aslak hellesoy
On Fri, Nov 21, 2008 at 4:20 AM, David Chelimsky <[EMAIL PROTECTED]>wrote: > On Thu, Nov 20, 2008 at 5:47 PM, rubyphunk <[EMAIL PROTECTED]> > wrote: > > Hi, > > > > same problem here. I always used "example.implementation_backtrace" in > > a custom formatter to find out to which spec file a passin

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

2008-11-24 Thread aslak hellesoy
On Sun, Nov 23, 2008 at 6:50 PM, Tim Walker <[EMAIL PROTECTED]> wrote: > Sorry if this is a really basic question. Scanned the past several > months archives, didn't see it. > > When I am running "cucumber features" > > I get the error: > > "uninitialized constant Thing (NameError)" > > With step

  1   2   3   4   5   6   7   >