Re: [rspec-users] [rspec/tm] When running the textmate bundle hook using command-r I get an error about missing rubygems

2009-03-13 Thread Scott Taylor
David Chelimsky wrote: On Sat, Mar 7, 2009 at 3:03 PM, Nathaniel Brown wrote: I get the following error using both edge version of the TM bundle and rspec/rspec-rails in vendor/plugins. /Users/nshb/Library/Application Support/TextMate/Bundles/ RSpec.tmbundle/Support/lib/spec/mate.rb:2:in `r

Re: [rspec-users] Cucumber seems to be running steps after failed steps ...

2009-03-13 Thread Korny Sietsma
Hmm - it might be because I had both cucumber-0.1.16 and the aslakhellesoy-cucumber gem installed - I'll try to get rid of the old cucumber gem and see if that helps. (Though my initial attempts are causing all sorts of pain with things that seem to require 'cucumber' not 'aslakhellesoy-cucumber'

[rspec-users] Cucumber seems to be running steps after failed steps ...

2009-03-13 Thread Korny Sietsma
I'm a bit confused. I have a scenario similar to (numbered for clarity): Scenario: view basic 1) Given I am logged in as 'fred' 2) When I navigate to the 'foo' tab 3) And I select the 'bar' node 4) Then the node 'baz' is displayed Now, when I have a problem that the 'foo' tab

Re: [rspec-users] Cucumber seems to be running steps after failed steps ...

2009-03-13 Thread aslak hellesoy
On Fri, Mar 13, 2009 at 8:05 AM, Korny Sietsma wrote: > Hmm - it might be because I had both cucumber-0.1.16 and the > aslakhellesoy-cucumber gem installed - I'll try to get rid of the old > cucumber gem and see if that helps. (Though my initial attempts are causing > all sorts of pain with thin

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

2009-03-13 Thread Fedor Fomenko
What is the right place to load fixtures specific to a given scenario? I was thinking of using Worlds. Is it the right place for loading/deleting fixtures? How do I specify which world scenario should run in? -- Posted via http://www.ruby-forum.com/. ___

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

2009-03-13 Thread steven shingler
Hi all, How can I get cucumber to tell me how long my entire feature set has taken to run? (In the same way that RSpec does, for example) I have taken a look at the profile formatter, which is very cool and useful but doesn't give the overall time for the feature 'suite'. I know that (on *nix)

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

2009-03-13 Thread aslak hellesoy
On Fri, Mar 13, 2009 at 9:42 AM, steven shingler wrote: > Hi all, > > How can I get cucumber to tell me how long my entire feature set has > taken to run? > By submitting a feature request :-) http://wiki.github.com/aslakhellesoy/cucumber/get-in-touch Aslak > > (In the same way that RSpec do

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

2009-03-13 Thread Joseph Wilk
steven shingler wrote: Hi all, How can I get cucumber to tell me how long my entire feature set has taken to run? (In the same way that RSpec does, for example) I have taken a look at the profile formatter, which is very cool and useful but doesn't give the overall time for the feature 'suite'

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

2009-03-13 Thread steven shingler
done! Thanks, Steven On Fri, Mar 13, 2009 at 9:36 AM, aslak hellesoy wrote: > > > On Fri, Mar 13, 2009 at 9:42 AM, steven shingler wrote: >> >> Hi all, >> >> How can I get cucumber to tell me how long my entire feature set has >> taken to run? > > By submitting a feature request :-) > > http://w

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

2009-03-13 Thread steven shingler
Have jotted a ticket here: http://rspec.lighthouseapp.com/projects/16211/tickets/228-get-cucumber-to-tell-me-how-long-my-entire-feature-set-has-taken-to-run#ticket-228-1 Please edit accordingly :) On Fri, Mar 13, 2009 at 9:58 AM, Joseph Wilk wrote: > steven shingler wrote: >> >> Hi all, >> >>

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

2009-03-13 Thread Joseph Wilk
Fedor Fomenko wrote: What is the right place to load fixtures specific to a given scenario? I was thinking of using Worlds. Is it the right place for loading/deleting fixtures? How do I specify which world scenario should run in? There 3 options I can think of: 1. Background Feature This all

[rspec-users] [webrat] click link by title doesn't work

2009-03-13 Thread Andrew Premdas
Webrat 0.4.2 doesn't seem to allow you to click links by title. Am I missing something stupid? With steps below running in sequence, first passes, second fails Then /^I should see a view (\w+) details link$/ do |object| response.should have_tag("a[title=#{object}_details]") end When /^I follow

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

2009-03-13 Thread Pat Maddox
On Mar 13, 2009, at 3:11 AM, Joseph Wilk wrote: Fedor Fomenko wrote: What is the right place to load fixtures specific to a given scenario? I was thinking of using Worlds. Is it the right place for loading/ deleting fixtures? How do I specify which world scenario should run in? There 3 opt

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

2009-03-13 Thread aslak hellesoy
On Fri, Mar 13, 2009 at 11:37 AM, Pat Maddox wrote: > On Mar 13, 2009, at 3:11 AM, Joseph Wilk wrote: > > Fedor Fomenko wrote: >> >>> What is the right place to load fixtures specific to a given scenario? I >>> was thinking of using Worlds. Is it the right place for loading/deleting >>> fixtures

[rspec-users] [rspec] be_something accepts nils

2009-03-13 Thread Ashley Moran
Hi Just noticed that the behaviour of @cow.should_not be_hungry is not the same as @cow.hungry?.should == false # nil also passes Don't know how this has escaped me for so long =) What's the thinking behind this? You can already do @cow.hungry?.should(_not) be_nil so surely it makes

[rspec-users] [Proposal] deprecate context() at the top level

2009-03-13 Thread David Chelimsky
Hi all, There are two tickets in lighthouse that point to problems with the use of context() in RSpec: * conflict with JRuby: http://rspec.lighthouseapp.com/projects/5645/tickets/728 * request context() be deprecated http://rspec.lighthouseapp.com/projects/5645/tickets/713 As there are a lot

[rspec-users] Spec'ing chained calls

2009-03-13 Thread Levy Carneiro Jr.
Hello! I'm trying to spec a method, that has several chained calls. http://gist.github.com/78562 (spec) http://gist.github.com/78563 (model) In the first spec, I'm trying to focus on the method calls that have to be made, and the arguments they should receive. Is there a better way to spec the

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

2009-03-13 Thread James Byrne
Steven Shingler wrote: > Hi all, > > How can I get cucumber to tell me how long my entire feature set has > taken to run? > $ time rake features ... 29 scenarios 165 steps passed 4 steps failed 10 steps skipped rake aborted! Command failed with status (1): [/usr/bin/ruby -I "/usr/lib64/ruby/ge

Re: [rspec-users] [rspec] be_something accepts nils

2009-03-13 Thread Mark Wilden
On Fri, Mar 13, 2009 at 5:17 AM, Ashley Moran > > Just noticed that the behaviour of > > �...@cow.should_not be_hungry > > is not the same as > > �...@cow.hungry?.should == false # nil also passes > > Don't know how this has escaped me for so long =) > > What's the thinking behind this?  You can al

Re: [rspec-users] Spec'ing chained calls

2009-03-13 Thread Chris Flipse
You might want to look into using a null object, and breaking that first spec up into several examples (a null object returns itself when sent a message it doesn't know how to handle) http://gist.github.com/78570 I've built more than a few named_scope chains using this pattern, and it seems to w

Re: [rspec-users] Spec'ing chained calls

2009-03-13 Thread Scott Taylor
Levy Carneiro Jr. wrote: Hello! I'm trying to spec a method, that has several chained calls. http://gist.github.com/78562 (spec) http://gist.github.com/78563 (model) In the first spec, I'm trying to focus on the method calls that have to be made, and the arguments they should receive. Is th

Re: [rspec-users] [cucumber] open source projects with cucumber features

2009-03-13 Thread Oliver Barnes
I'm looking for feature examples for web apps, I imagine Balint is as well? 2009/3/11 Matt Wynne : > > On 11 Mar 2009, at 19:46, Zach Dennis wrote: > >> On Wed, Mar 11, 2009 at 3:03 PM, Balint Erdi wrote: >>> >>> Hi, >>> >>> I was looking for some "real-world" cucumber features (mainly on github)

Re: [rspec-users] How do you use pending in RSpec?

2009-03-13 Thread Matt Wynne
On 12 Mar 2009, at 23:23, Bill Venners wrote: I guess I'm curious: 1) How important is it to you to be able to just "strike out" the lines of code within an example that are failing (as you can with RSpec's #3 pending form), versus just "striking out" the entire example as you can with ignore

Re: [rspec-users] [rspec] be_something accepts nils

2009-03-13 Thread Pat Maddox
On Mar 13, 2009, at 5:17 AM, Ashley Moran wrote: Hi Just noticed that the behaviour of @cow.should_not be_hungry is not the same as @cow.hungry?.should == false # nil also passes Don't know how this has escaped me for so long =) What's the thinking behind this? You can already do @cow

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

2009-03-13 Thread steven shingler
Hi James, Yep, I mentioned the time command in my original post, I'm looking for a within-cucumber option. :) Thanks, Steven On Fri, Mar 13, 2009 at 2:12 PM, James Byrne wrote: > Steven Shingler wrote: >> Hi all, >> >> How can I get cucumber to tell me how long my entire feature set has >> tak

Re: [rspec-users] [cucumber] open source projects with cucumber features

2009-03-13 Thread aslak hellesoy
On Fri, Mar 13, 2009 at 3:22 PM, Oliver Barnes wrote: > I'm looking for feature examples for web apps, I imagine Balint is as well? > What kind of webapp? Merb? JEE? Rails? Sinatra? ASP.NET? PHP? other? Aslak > > 2009/3/11 Matt Wynne : > > > > On 11 Mar 2009, at 19:46, Zach Dennis wrote: > >

Re: [rspec-users] How do you use pending in RSpec?

2009-03-13 Thread Bill Venners
Hi Matt and others, Thanks for your replies. I think I've settled on just using two of RSpec's pending forms in ScalaTest. If you want to write out a few spec texts before writing the examples, you'd put pending in parens where you'd normally put the block of example code: it("should do something

Re: [rspec-users] [rspec] be_something accepts nils

2009-03-13 Thread Matt Wynne
On 13 Mar 2009, at 15:42, Pat Maddox wrote: On Mar 13, 2009, at 5:17 AM, Ashley Moran wrote: Hi Just noticed that the behaviour of @cow.should_not be_hungry is not the same as @cow.hungry?.should == false # nil also passes Don't know how this has escaped me for so long =) What's the thi

Re: [rspec-users] [cucumber] open source projects with cucumber features

2009-03-13 Thread Oliver Barnes
Rails, but any other would be helpful as well, really. Just a repo of varied real-world cucumber feature examples already would help a lot, even without the feature steps or an actual developed app. I've been mining samples from pasties, tutorials and from github, but have found only a few scatter

Re: [rspec-users] [cucumber] open source projects with cucumber features

2009-03-13 Thread aslak hellesoy
On Fri, Mar 13, 2009 at 7:13 PM, Oliver Barnes wrote: > Rails, but any other would be helpful as well, really. > > Just a repo of varied real-world cucumber feature examples already > would help a lot, even without the feature steps or an actual > developed app. I've been mining samples from past

Re: [rspec-users] [rspec] be_something accepts nils

2009-03-13 Thread Ashley Moran
On 13 Mar 2009, at 16:34, Matt Wynne wrote: The expanded form of @cow.should_not be_hungry is @cow.hungry?.should_not be Pat Like yoda sounds, that does And enlightened, I am =) Thanks Pat -- http://www.patchspace.co.uk/ http://www.linkedin.com/in/ashleymoran http://aviewfromafar.net/ ht

[rspec-users] Cucumber - Adding a step definition

2009-03-13 Thread Tim Hart
List, Quick question about Cucumber/Gherkin. I'm considering adding 'With' as a step definition to support scenarios like: Given a policy With a PCF practice state And a secondary risk ... I'm fairly new to ruby - but I can't quite get this one figured out. I've tried adding Cucumber.alias_st

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

2009-03-13 Thread aslak hellesoy
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 policy > With a PCF practice state > And a secondary risk > ... > > I'm fairly new to ruby - but I c

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

2009-03-13 Thread Luke Melia
Has anyone noticed a slowdown in performance of their cucumber suite from 0.1 to 0.2alpha? I haven't ruled out something in our suite itself, but the slowdown appeared to occur concurrently with our upgrade to 0.2alpha. Cheers, Luke -- Luke Melia l...@lukemelia.com http://www.lukemelia.com/