Re: [rspec-users] plans for cucumber

2008-09-24 Thread DyingToLearn
Ashley Moran wrote: > Maybe it's worth doing a quick survey of everyone here that uses > classic/cucumber stories - how *do* you structure your story/feature > directory? I'd have to *vote* for the current way cucumber lays out the directoroy structure. However, I am happy to change my ways if the

Re: [rspec-users] Problem testing method

2008-09-24 Thread David Chelimsky
On Wed, Sep 24, 2008 at 5:59 PM, Carlos Rafael Belizón Ibáñez <[EMAIL PROTECTED]> wrote: > I'm really need your help guys to understand the philosophy of BDD. This > is a par of my Final Career Project. Here's a short tutorial to get you started. http://blog.davidchelimsky.net/articles/2007/05/14

Re: [rspec-users] Problem testing method

2008-09-24 Thread Carlos Rafael Belizón Ibáñez
I'm really need your help guys to understand the philosophy of BDD. This is a par of my Final Career Project. Thanks ;). ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] TextMate and RSpec

2008-09-24 Thread Mark Wilden
On Wed, Sep 24, 2008 at 9:23 AM, Martin Streicher < [EMAIL PROTECTED]> wrote: > > I have to persist some data in the database to test the interactions > between two of my models. One model has a serial number attribute that is > unique, so it must be entered once and only once. > > rake spec delet

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

2008-09-24 Thread aslak hellesoy
On Wed, Sep 24, 2008 at 9:43 PM, Fernando Perez <[EMAIL PROTECTED]> wrote: > I'd like to know: in a nutshell what's the difference between Webrat and > Cucumber? > They do completely different things. Webrat is a library that allows you to interact with a Rails web app using a high level API simi

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

2008-09-24 Thread David Chelimsky
On Wed, Sep 24, 2008 at 2:43 PM, Fernando Perez <[EMAIL PROTECTED]> wrote: > I'd like to know: in a nutshell what's the difference between Webrat and > Cucumber? > > I saw that in RSpec 1.1.5, Story Runner will be replaced by Cucumber, so > isn't learning Cucumber compulsory? No you didn't. You sa

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

2008-09-24 Thread Christopher Bailey
They're separate - Cucumber parallels RSpec Story Runner and replaces that, not WebRat. On Wed, Sep 24, 2008 at 12:43 PM, Fernando Perez <[EMAIL PROTECTED]>wrote: > I'd like to know: in a nutshell what's the difference between Webrat and > Cucumber? > > I saw that in RSpec 1.1.5, Story Runner wil

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

2008-09-24 Thread Fernando Perez
I'd like to know: in a nutshell what's the difference between Webrat and Cucumber? I saw that in RSpec 1.1.5, Story Runner will be replaced by Cucumber, so isn't learning Cucumber compulsory? -- Posted via http://www.ruby-forum.com/. ___ rspec-users m

Re: [rspec-users] Rspec runs tests when not appropriate

2008-09-24 Thread Fernando Perez
Sorry, I didn't realize these were Zentest issues. Thank's for your tip by the way, now committing to Hg doesn't make autotest run. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mai

Re: [rspec-users] Rspec runs tests when not appropriate

2008-09-24 Thread David Chelimsky
On Wed, Sep 24, 2008 at 11:46 AM, Fernando Perez <[EMAIL PROTECTED]> wrote: > Hi, > > I have found 2 troubles with rspec, it is currently running the test > suites in the following cases: RSpec doesn't automatically run your examples for you. Autotest does. > 1) when I only edit comments in the f

[rspec-users] Rspec runs tests when not appropriate

2008-09-24 Thread Fernando Perez
Hi, I have found 2 troubles with rspec, it is currently running the test suites in the following cases which is highly annoying: 1) when I only edit comments in the files. 2) when I commit changes to my mercurial repository. Is there a way to fix these two issues? -- Posted via http://www.rub

Re: [rspec-users] cucumber comments?

2008-09-24 Thread David Chelimsky
On Wed, Sep 24, 2008 at 11:29 AM, aidy lewis <[EMAIL PROTECTED]> wrote: > Hi, > > In the Story Runner I was using hashes as comments. However, I am > getting a parse error when using cucumber. > > What do others do? It's not implemented yet in cucumber: http://rspec.lighthouseapp.com/projects/162

[rspec-users] cucumber comments?

2008-09-24 Thread aidy lewis
Hi, In the Story Runner I was using hashes as comments. However, I am getting a parse error when using cucumber. What do others do? Aidy ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] TextMate and RSpec

2008-09-24 Thread Martin Streicher
I have to persist some data in the database to test the interactions between two of my models. One model has a serial number attribute that is unique, so it must be entered once and only once. rake spec deletes all the data, allowing my tests to pass. . Running rspec under TextMate produc

Re: [rspec-users] Problem testing method

2008-09-24 Thread Carlos Rafael Belizón Ibáñez
El mié, 24-09-2008 a las 09:22 -0500, David Chelimsky escribió: > On Wed, Sep 24, 2008 at 9:21 AM, Matt Wynne <[EMAIL PROTECTED]> wrote: > > On 24 Sep 2008, at 14:38, David Chelimsky wrote: > > > >> On Wed, Sep 24, 2008 at 8:23 AM, Matt Wynne <[EMAIL PROTECTED]> wrote: > >>> > >>> On 24 Sep 2008, a

Re: [rspec-users] Problem testing method

2008-09-24 Thread David Chelimsky
On Wed, Sep 24, 2008 at 9:21 AM, Matt Wynne <[EMAIL PROTECTED]> wrote: > On 24 Sep 2008, at 14:38, David Chelimsky wrote: > >> On Wed, Sep 24, 2008 at 8:23 AM, Matt Wynne <[EMAIL PROTECTED]> wrote: >>> >>> On 24 Sep 2008, at 13:35, Carlos Rafael Belizón Ibáñez wrote: >>> If you create a mock o

Re: [rspec-users] Problem testing method

2008-09-24 Thread Matt Wynne
On 24 Sep 2008, at 14:38, David Chelimsky wrote: On Wed, Sep 24, 2008 at 8:23 AM, Matt Wynne <[EMAIL PROTECTED]> wrote: On 24 Sep 2008, at 13:35, Carlos Rafael Belizón Ibáñez wrote: If you create a mock object using mock_model(), or mock(), you have to stub or mock absolutely all the intera

Re: [rspec-users] Running cucumber distributed across hardware

2008-09-24 Thread Scott Taylor
On Sep 24, 2008, at 1:31 AM, Bryan Helmkamp wrote: On Mon, Sep 22, 2008 at 9:57 PM, Scott Taylor <[EMAIL PROTECTED]> wrote: Let me know if you come up with something - I'd be interested in contributing to such a project. I started working on a project I'm calling Testjour to solve this at ht

Re: [rspec-users] Problem testing method

2008-09-24 Thread David Chelimsky
On Wed, Sep 24, 2008 at 8:23 AM, Matt Wynne <[EMAIL PROTECTED]> wrote: > On 24 Sep 2008, at 13:35, Carlos Rafael Belizón Ibáñez wrote: > >> Hi, I have one problem testing one method to learn rSpec. This is the >> example >> >> #foo.rb >> >> class Foo < ActiveRecord::Base >> has_one :bar >> >> def

Re: [rspec-users] Problem testing method

2008-09-24 Thread Matt Wynne
On 24 Sep 2008, at 13:35, Carlos Rafael Belizón Ibáñez wrote: Hi, I have one problem testing one method to learn rSpec. This is the example #foo.rb class Foo < ActiveRecord::Base has_one :bar def foo @bar.bar -= - 1 end end #bar.rb class Bar < ActiveRecord::Base end #foo_spec.rb

Re: [rspec-users] Upgraded to 2.1 and 1.1.4 from 2.0 and 1.1.3, no output from 'rake spec'

2008-09-24 Thread David Chelimsky
On Wed, Aug 27, 2008 at 9:56 AM, Joe Van Dyk <[EMAIL PROTECTED]> wrote: > No, I don't get any output from that, or by using the spec command. > Nothing got overwritten. Joe - trying to get caught up w/ my mail :) Did you ever get this resolved? > > Joe > > On Mon, Aug 25, 2008 at 4:44 PM, Matt W

[rspec-users] Problem testing method

2008-09-24 Thread Carlos Rafael Belizón Ibáñez
Hi, I have one problem testing one method to learn rSpec. This is the example #foo.rb class Foo < ActiveRecord::Base has_one :bar def foo @bar.bar -= - 1 end end #bar.rb class Bar < ActiveRecord::Base end #foo_spec.rb require File.expand_path(File.dirname(__FILE__) + '/../spec_help

Re: [rspec-users] How to define request.domain in when testing

2008-09-24 Thread Jarkko Laine
On 24.9.2008, at 14.07, Fernando Perez wrote: Hi jarkko, I get the following error message: --- `load_environment': undefined method `default_url_options' for ActionController::Base:Class (NoMethodError) --- From this ticket:http://rails.lighthouseapp.com/projects/8994/tickets/22-default_u

Re: [rspec-users] How to define request.domain in when testing

2008-09-24 Thread Fernando Perez
Hi jarkko, I get the following error message: --- `load_environment': undefined method `default_url_options' for ActionController::Base:Class (NoMethodError) --- >From this ticket:http://rails.lighthouseapp.com/projects/8994/tickets/22-default_url_options-is-being-ignored-by-named-route-optimi

Re: [rspec-users] Separating black sheep examples from the rest

2008-09-24 Thread Matt Wynne
On 23 Sep 2008, at 17:11, Ben Mabey wrote: Matt Wynne wrote: So we've got a pretty decent number of specs now, and despite my best efforts, AR is just forcing us down the path of having to use database interaction for some of the model specs. To turn my real database on for individual examp

Re: [rspec-users] How to define request.domain in when testing

2008-09-24 Thread Jarkko Laine
On 24.9.2008, at 12.51, Fernando Perez wrote: Hi, My application relies on request.domain for doing its job. The problem I am encountering, is that when running tests, request.domain returns "test.host", how can I change that so that it returns "mysite.com"? Set this somewhere in your test

Re: [rspec-users] Cucumber: listing redundant step matchers

2008-09-24 Thread aslak hellesoy
On Wed, Sep 24, 2008 at 10:30 AM, Matt Wynne <[EMAIL PROTECTED]> wrote: > Is there any way currently to list out the step matchers that were never > used when you run a set of features? > This would help me keep our step files tidy. > If not, some pointers to how I might write such a thing would be

[rspec-users] How to define request.domain in when testing

2008-09-24 Thread Fernando Perez
Hi, My application relies on request.domain for doing its job. The problem I am encountering, is that when running tests, request.domain returns "test.host", how can I change that so that it returns "mysite.com"? Thanks in advance. -- Posted via http://www.ruby-forum.com/. __

[rspec-users] Cucumber: listing redundant step matchers

2008-09-24 Thread Matt Wynne
Is there any way currently to list out the step matchers that were never used when you run a set of features? This would help me keep our step files tidy. If not, some pointers to how I might write such a thing would be cool :) cheers, Matt http://blog.mattwynne.net http://songkick.com

Re: [rspec-users] Running cucumber distributed across hardware

2008-09-24 Thread aslak hellesoy
On Wed, Sep 24, 2008 at 7:31 AM, Bryan Helmkamp <[EMAIL PROTECTED]> wrote: > On Mon, Sep 22, 2008 at 9:57 PM, Scott Taylor > <[EMAIL PROTECTED]> wrote: >> Let me know if you come up with something - I'd be interested in >> contributing to such a project. > > I started working on a project I'm calli

Re: [rspec-users] rspec and rspec-rails install hell - autotest

2008-09-24 Thread Fernando Perez
Thank you very much for ./script/autospec, it works perfectly now. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users