Re: [rspec-users] [rspec] http://rspec.info examples are broken

2009-05-27 Thread Jarmo Pertman
On May 25, 10:43 pm, aslak hellesoy wrote: > > It seems that some examples athttp://rspec.infoare 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%2Fdo

Re: [rspec-users] create_

2009-05-27 Thread Zach Dennis
On Wed, May 27, 2009 at 8:51 AM, Denis Haskin wrote: > Any know issues with the dynamic create_ method and > factory_girl? > > I have an object created by a factory: > >     @order = Factory.create :payable_order_with_line_items > > and then I do: > >     @order.create_ship_address( > then the shi

Re: [rspec-users] thoughts on this?

2009-05-27 Thread Zach Dennis
On Wed, May 27, 2009 at 8:19 PM, Matt Wynne wrote: > http://robertlally.com/post/bdd-not-so-much My response was too long, I just posted to my blog. http://www.continuousthinking.com/2009/5/28/bdd-not-so-much-really I'm serious about the book club though. -- Zach Dennis http://www.continuou

Re: [rspec-users] thoughts on this?

2009-05-27 Thread Ben Mabey
Stephen Eley wrote: On Wed, May 27, 2009 at 8:19 PM, Matt Wynne wrote: http://robertlally.com/post/bdd-not-so-much *shrug* I'll add a *sigh* as well... Robert says his "problem is with the definition of BDD itself". He points out that no one can really agree on what BDD is exac

Re: [rspec-users] thoughts on this?

2009-05-27 Thread Stephen Eley
On Wed, May 27, 2009 at 8:19 PM, Matt Wynne wrote: > http://robertlally.com/post/bdd-not-so-much *shrug* I think he's being too literal and missing the substance of the practice by criticizing its veneer. I personally don't use BDD as a path to customer communication; in the majority of my proj

[rspec-users] thoughts on this?

2009-05-27 Thread Matt Wynne
http://robertlally.com/post/bdd-not-so-much Matt Wynne http://beta.songkick.com http://blog.mattwynne.net ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] cucumber-java

2009-05-27 Thread Shane Hayes
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 since 0.0

Re: [rspec-users] [rspec]spec_server: already initialized constant MyTestClass

2009-05-27 Thread Matt Wynne
On 27 May 2009, at 22:03, Scott Taylor wrote: On May 27, 2009, at 4:59 PM, Matt Wynne wrote: On 27 May 2009, at 14:36, Scott Taylor wrote: David Chelimsky wrote: On Fri, May 1, 2009 at 12:26 PM, Matt Wynne wrote: I'm creating a class in my spec file to test out a module, but when I

Re: [rspec-users] [rspec]spec_server: already initialized constant MyTestClass

2009-05-27 Thread Scott Taylor
On May 27, 2009, at 4:59 PM, Matt Wynne wrote: On 27 May 2009, at 14:36, Scott Taylor wrote: David Chelimsky wrote: On Fri, May 1, 2009 at 12:26 PM, Matt Wynne wrote: I'm creating a class in my spec file to test out a module, but when I run the spec a second time in spec_server, I ge

Re: [rspec-users] [rspec]spec_server: already initialized constant MyTestClass

2009-05-27 Thread Matt Wynne
On 27 May 2009, at 14:36, Scott Taylor wrote: David Chelimsky wrote: On Fri, May 1, 2009 at 12:26 PM, Matt Wynne wrote: I'm creating a class in my spec file to test out a module, but when I run the spec a second time in spec_server, I get the error above. I presume this is because rail

Re: [rspec-users] cucumber-java

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

Re: [rspec-users] cucumber-java

2009-05-27 Thread Shane Hayes
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 to use

Re: [rspec-users] Cucmber Step to insert Test Data into Database

2009-05-27 Thread Ben Mabey
Scott Taylor wrote: David Chelimsky wrote: On Wed, May 27, 2009 at 5:20 AM, Smita Sreekanth wrote: Hi, We run the feature created for a form to identify the fields and also to add data into the respective fields. But while running the cucumber features, all the scenario and steps are get

Re: [rspec-users] Cucmber Step to insert Test Data into Database

2009-05-27 Thread Lee Hambley
Scott, Last mondayish ? - Lee 2009/5/27 Scott Taylor > David Chelimsky wrote: > >> On Wed, May 27, 2009 at 5:20 AM, Smita Sreekanth >> wrote: >> >> >>> Hi, >>> >>> We run the feature created for a form to identify the fields and also to >>> add data into the respective fields. >>> >>> But while

Re: [rspec-users] Cucmber Step to insert Test Data into Database

2009-05-27 Thread Scott Taylor
David Chelimsky wrote: On Wed, May 27, 2009 at 5:20 AM, Smita Sreekanth wrote: Hi, We run the feature created for a form to identify the fields and also to add data into the respective fields. But while running the cucumber features, all the scenario and steps are getting passed but the re

Re: [rspec-users] [rspec]spec_server: already initialized constant MyTestClass

2009-05-27 Thread Scott Taylor
David Chelimsky wrote: On Fri, May 1, 2009 at 12:26 PM, Matt Wynne wrote: I'm creating a class in my spec file to test out a module, but when I run the spec a second time in spec_server, I get the error above. I presume this is because rails is un-loading the class, and it's not getting re-

Re: [rspec-users] spec for authenticated user

2009-05-27 Thread Diwakar, ANGLER - EIT
private; def requires_user if user.nil? if request.format.html? session[ :redirected_from ] ||= request.env[ "REQUEST_URI" ] redirect_to( sign_in_url ) else render( :status => 403, :text => 'An authenticated user is required.' )

[rspec-users] create_

2009-05-27 Thread Denis Haskin
Any know issues with the dynamic create_ method and factory_girl? I have an object created by a factory: @order = Factory.create :payable_order_with_line_items and then I do: @order.create_ship_address(then the ship_address object is persisted but the association is not made (e.g. @ord

Re: [rspec-users] [rspec]spec_server: already initialized constant MyTestClass

2009-05-27 Thread Matt Wynne
On 27 May 2009, at 09:26, David Chelimsky wrote: On Fri, May 1, 2009 at 12:26 PM, Matt Wynne wrote: I'm creating a class in my spec file to test out a module, but when I run the spec a second time in spec_server, I get the error above. I presume this is because rails is un-loading the cla

Re: [rspec-users] spec for authenticated user

2009-05-27 Thread David Chelimsky
On Wed, May 27, 2009 at 7:08 AM, Diwakar, ANGLER - EIT wrote: >   before_filter :requires_user, >    :except => :create > >  def show >   #--- > >     # the currently authenticated user >     @user = user > >   end > > How shall we check the currently authenticated user using rspec

[rspec-users] spec for authenticated user

2009-05-27 Thread Diwakar, ANGLER - EIT
before_filter :requires_user, :except => :create def show #--- # the currently authenticated user @user = user end How shall we check the currently authenticated user using rspec? ___ rspec-users mailing list

Re: [rspec-users] Cucmber Step to insert Test Data into Database

2009-05-27 Thread David Chelimsky
On Wed, May 27, 2009 at 5:20 AM, Smita Sreekanth wrote: > Hi, > > We run the feature created for a form to identify the fields and also to > add data into the respective fields. > > But while running the cucumber features, all the scenario and steps are > getting passed but the record is not getti

[rspec-users] Cucmber Step to insert Test Data into Database

2009-05-27 Thread Smita Sreekanth
Hi, We run the feature created for a form to identify the fields and also to add data into the respective fields. But while running the cucumber features, all the scenario and steps are getting passed but the record is not getting inserted into the application / the database. We have also wrote

Re: [rspec-users] modules and stub

2009-05-27 Thread David Chelimsky
On Mon, May 25, 2009 at 1:51 AM, Sarah Allen wrote: > David Chelimsky wrote: >> >> Foo::Bar.stub(:do_something) > > hmm. that's pretty close to where I started. > >> If you stub, for example, do_something on this module, but it turns >> out that do_something gets added to the module through some d

Re: [rspec-users] Options Hash explanation ?

2009-05-27 Thread David Chelimsky
On Wed, May 13, 2009 at 3:36 PM, mortench wrote: > On 13 Maj, 07:28, David Chelimsky wrote: >> You can access the group and example options from within an example: >> >> describe "group options hash", :defined_in => :group do >>   it "is available in examples via self.class.options" do >>     sel

Re: [rspec-users] Including extra directories for Autospec

2009-05-27 Thread David Chelimsky
Adam, that's not what Kero was asking about. In addition to the ./.autotest file, do you also have a ~/.autotest file? On Tue, May 19, 2009 at 1:54 AM, Adam Anderson wrote: > Yeah. I apologize that was a typo on my part. It should have said ./.autotest > > > -Adam > > On Mon, May 18, 2009 at 11:

Re: [rspec-users] Fixture::FormatError parsing YAML

2009-05-27 Thread David Chelimsky
On Mon, May 18, 2009 at 3:50 PM, WJSimacek wrote: > > > On May 18, 2:16 pm, David Chelimsky wrote: >> On Mon, May 18, 2009 at 10:31 AM, WJSimacek wrote: >> > Hi, >> >    I'm trying to test restful_authentication plugin and am getting >> > errors with my install. >> >      ==>I've been through th

Re: [rspec-users] [rspec]spec_server: already initialized constant MyTestClass

2009-05-27 Thread David Chelimsky
On Fri, May 1, 2009 at 12:26 PM, Matt Wynne wrote: > I'm creating a class in my spec file to test out a module, but when I run > the spec a second time in spec_server, I get the error above. > > I presume this is because rails is un-loading the class, and it's not > getting re-loaded properly as i

Re: [rspec-users] Problem with testing Rails action that uses return keyword

2009-05-27 Thread David Chelimsky
On Tue, May 19, 2009 at 5:13 PM, szimek wrote: > Hi, > > I'm trying to test Rails action that looks like this: > > def create >  unless facebook_session >    authentication_failed and return >  end >  ... > �...@facebook_user = facebook_session.user >  ... > end > > authentication_failed method re

Re: [rspec-users] RSpec support on .Net with Gallio.

2009-05-27 Thread David Chelimsky
On Sat, May 16, 2009 at 7:09 PM, Jeff Brown wrote: > Hi, > I'm getting ready to produce an RSpec adapter for use with the Gallio test > automation platform (http://www.gallio.org/) on the .Net DLR via IronRuby. > > The idea is to open up RSpec to a wider audience of .Net developers who > might lik

Re: [rspec-users] Any way to continue on Assertion Failure

2009-05-27 Thread Matt Wynne
On 27 May 2009, at 03:38, Julian Leviston wrote: On 27/05/2009, at 9:33 AM, Gary Lin wrote: Hi, I wonder if there is any way to tell the test script to continue even when encountering an assertion failure? The reason I am asking this is because I have a test flow that can take a long ti