Re: [rspec-users] [RSpec] implicit receiver for should problem when helper predicate methods are in use

2009-05-07 Thread Jarmo Pertman
I think that I don't understand what you mean by that exactly. I mean, I patched the should and should_not methods in moule Subject::ExampleMethods themselves, which means that this changes only behaviour of subject itself e.g. it is already part of RSpec and don't see how it would break matchers o

[rspec-users] Sharing common Cuke steps

2009-05-07 Thread Mike Doel
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 stuff that I use for myself at: http://github.com/mdoel

Re: [rspec-users] [RSpec] implicit receiver for should problem when helper predicate methods are in use

2009-05-07 Thread David Chelimsky
On Thu, May 7, 2009 at 1:34 PM, Jarmo Pertman wrote: > Okay, I fiddled around a little and made this solution: > module Spec >  module Example >    module Subject >      module ExampleMethods > >        def should(matcher=nil) >          if matcher >            self == subject ? > Spec::Expectatio

Re: [rspec-users] [cucumber] Multi-line Step Arguments

2009-05-07 Thread keith shaw
That did the trick! Thank You! On Thu, May 7, 2009 at 4:33 PM, Matt Wynne wrote: > > 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

Re: [rspec-users] [RSpec] implicit receiver for should problem when helper predicate methods are in use

2009-05-07 Thread David Chelimsky
On Thu, May 7, 2009 at 11:14 AM, juuuser wrote: > > I just upgraded RSpec and noticed that some of my specs started to fail and > it is caused by the 1.1.2 update where implicit receiver for should is > introduced. > > Here is one sample example group, which works with older versions naturally. >

Re: [rspec-users] [cucumber] Multi-line Step Arguments

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

Re: [rspec-users] [cucumber] Multi-line Step Arguments

2009-05-07 Thread Matt Wynne
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 that's the pro

Re: [rspec-users] [RSpec] implicit receiver for should problem when helper predicate methods are in use

2009-05-07 Thread Jarmo Pertman
Okay, I fiddled around a little and made this solution: module Spec module Example module Subject module ExampleMethods def should(matcher=nil) if matcher self == subject ? Spec::Expectations::PositiveExpectationHandler.handle_matcher(self, matcher) : subj

[rspec-users] [cucumber] Multi-line Step Arguments

2009-05-07 Thread keith shaw
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. I am currently using cucumber version 0.2.3. When I run the test the browser opens for a split second and I receive the following error : /Library/Ruby/Gems/1

Re: [rspec-users] Mocha and rspec_scaffold

2009-05-07 Thread Scott Taylor
On May 7, 2009, at 7:32 AM, jevado wrote: Hi All, I'm busy experimenting with RSpec and encountered a small issue with the scaffolding. As soon as I chooce mocha as my mocking framework in the spec helper the specs created with rspec_scaffold fail. Is this a bug or do the rspec_generators onl

Re: [rspec-users] [Cucumber] Rails Selenium ruby-debug

2009-05-07 Thread Julian Leviston
On 07/05/2009, at 8:02 PM, Julian Leviston wrote: Hey all, Has anyone else had any issues with trying to get APPLICATION code debugging when using cucumber, selenium & webrat? I can debug steps just fine, but debugs in application code get skipped over under selenium for some reason. I

Re: [rspec-users] top posting and plain text

2009-05-07 Thread Kero van Gelder
>> So let me get this right, >> >> you agreed with Aslak that you shouldn't top post. >> >> by top posting >> > lol.. Yes. :) Sarcasm somethings doesn't come across well over email > I suppose. Not only that, he did it in so it was impossible for me to see whether it was top or bottom

Re: [rspec-users] [cucumber] Is it usual that selenium doesn't allow debugger?

2009-05-07 Thread Rick DeNatale
On Thu, May 7, 2009 at 5:39 AM, Julian Leviston wrote: > Hi, > > We're using Rails 2.3.2, and debugger doesn't seem to work in > cucumber/webrat running selenium mode. Has anyone else had this issue? > > It seems to be skipping the debugger methods Rails noops the debugger method by default with

[rspec-users] rspec_scaffold and mocha

2009-05-07 Thread jevado
Hi all, Sorry if this get's posted several times but I got a message that my previous post wasn't allowed because I'm not a member. I think I am now though. The problem I have is fairly simple. I have some plugins who use rspec and mocha and I want to make use of the rspec_scaffold generator. Unf

[rspec-users] [RSpec] implicit receiver for should problem when helper predicate methods are in use

2009-05-07 Thread juuuser
I just upgraded RSpec and noticed that some of my specs started to fail and it is caused by the 1.1.2 update where implicit receiver for should is introduced. Here is one sample example group, which works with older versions naturally. describe "example group" do it "example" do

[rspec-users] [RSpec] implicit receiver for should problem when helper predicate methods are in use

2009-05-07 Thread juuser
I just upgraded RSpec and noticed that some of my specs started to fail and it is caused by the 1.1.2 update where implicit receiver for should is introduced. Here is one sample example group, which works with older versions naturally. describe "example group" do it "example" do

[rspec-users] Newbie: Rspec, Webrat, Mechanize, Cucumber

2009-05-07 Thread DVG
Alright, I'm trying to get up to speed with using Rspec, Webrat, Mechanize and Cucumber to test a non rails application. The RSpec Matchers (I think) seem to not be working as expected. When I run my feature, it says the world cannot find the method "contain" I have the following gems installed:

[rspec-users] rspec_scaffold and mocha

2009-05-07 Thread jevado
Hi All, I have a question about the rspec_scaffold and if it's compatible with other mocking frameworks. I just created a blank application and a scaffold of a very basic model. The specs run fine untill I choose to use mocha in the spec_helper. Can somebody please tell me if this is ment to be a

[rspec-users] Mocha and rspec_scaffold

2009-05-07 Thread jevado
Hi All, I'm busy experimenting with RSpec and encountered a small issue with the scaffolding. As soon as I chooce mocha as my mocking framework in the spec helper the specs created with rspec_scaffold fail. Is this a bug or do the rspec_generators only work with the default mocking framework ? I'

Re: [rspec-users] Plugin to generate text logs using cucumber.

2009-05-07 Thread Anil Gollaa
Hi Thanks for information. It helped me a lot. bascically using cucumber framework(using stdoutput) i want to capture Failed testcase along with log and passed testcasenames. Is there any plugin supported by cucumber ? atleast to generated xml of html or text log for passed and failed testcase.

Re: [rspec-users] Features failing to run correctly under 0.3.2

2009-05-07 Thread aslak hellesoy
> Tried this out using your github repository. Can confirm this fixes > our bug - looking forward to next gem release > Thanks for confirming Andrew Aslak > > Thanks > > Andrew > > 2009/5/7 Andrew Premdas : > > Thanks Aslak, I'll try this out when I get to work. > > > > Andrew > > > > 2009/5/6

[rspec-users] [cucumber] Is it usual that selenium doesn't allow debugger?

2009-05-07 Thread Julian Leviston
Hi, We're using Rails 2.3.2, and debugger doesn't seem to work in cucumber/ webrat running selenium mode. Has anyone else had this issue? It seems to be skipping the debugger methods Julian. ___ rspec-users mailing list rspec-users@rubyforge.org htt

Re: [rspec-users] [Cucumber] Rails Selenium ruby-debug

2009-05-07 Thread Matt Wynne
On 7 May 2009, at 11:02, Julian Leviston wrote: Hey all, Has anyone else had any issues with trying to get APPLICATION code debugging when using cucumber, selenium & webrat? I can debug steps just fine, but debugs in application code get skipped over under selenium for some reason. Is

[rspec-users] [Cucumber] Rails Selenium ruby-debug

2009-05-07 Thread Julian Leviston
Hey all, Has anyone else had any issues with trying to get APPLICATION code debugging when using cucumber, selenium & webrat? I can debug steps just fine, but debugs in application code get skipped over under selenium for some reason. Is this usual? Julian. __

Re: [rspec-users] Features failing to run correctly under 0.3.2

2009-05-07 Thread Andrew Premdas
Tried this out using your github repository. Can confirm this fixes our bug - looking forward to next gem release Thanks Andrew 2009/5/7 Andrew Premdas : > Thanks Aslak, I'll try this out when I get to work. > > Andrew > > 2009/5/6 aslak hellesoy >> >> >> On Wed, May 6, 2009 at 9:20 AM, Andrew