Re: [rspec-users] RSpec beta 22 with Rails 3

2010-09-21 Thread David Chelimsky
On Tue, Sep 21, 2010 at 10:46 PM, Amiruddin Nagri wrote: > > On Wed, Sep 22, 2010 at 12:54 AM, David Chelimsky > wrote: >> >> On Sep 21, 2010, at 4:08 AM, Amiruddin Nagri wrote: >> >> I am working on a Rails 3 application. Recently bundler got an update for >> rspec, which upgraded it to 22, (pre

Re: [rspec-users] RSpec beta 22 with Rails 3

2010-09-21 Thread Amiruddin Nagri
On Wed, Sep 22, 2010 at 12:54 AM, David Chelimsky wrote: > > On Sep 21, 2010, at 4:08 AM, Amiruddin Nagri wrote: > > I am working on a Rails 3 application. Recently bundler got an update for > rspec, which upgraded it to 22, (previously we were using beta 20). > > After the update we are unable to

Re: [rspec-users] undefined method `has_selector?' for "":String

2010-09-21 Thread Lord Raiden
> I'd prefer to be able to use Capybara matchers for > everything in order to avoid the duplication of two very similar but > slightly different APIs. > > Cheers, > Wincent Wincent pointed out my exact feelings on the matter (Probably in a better way than I could have.) But I'm willing to fol

Re: [rspec-users] Options for .rspec, or a verbose mode?

2010-09-21 Thread Lailson Bandeira
Well, it's a very unexpected place to put… help! =D -- LAILSON BANDEIRA http://lailsonbandeira.com/ On Tue, Sep 21, 2010 at 10:09 PM, David Chelimsky wrote: > > On Sep 21, 2010, at 8:00 PM, Lailson Bandeira wrote: > > And I wanna know if is there a verbose mode of running my specs, listing >> th

Re: [rspec-users] Conditional before() blocks in spec_helper based on metadata?

2010-09-21 Thread Lailson Bandeira
Look at this example for javascript pages: http://gist.github.com/518636. I think you can do something like that. -- LAILSON BANDEIRA http://lailsonbandeira.com/ On Tue, Sep 21, 2010 at 10:45 AM, John Feminella wrote: > I have some tests that need to load my application's seed data prior > to r

Re: [rspec-users] Options for .rspec, or a verbose mode?

2010-09-21 Thread David Chelimsky
On Sep 21, 2010, at 8:00 PM, Lailson Bandeira wrote: > And I wanna know if is there a verbose mode of running my specs, listing > their 'describes' and/or 'its'? > > You can use --format documentation to do this. Is there some place where all > the options are documented, folks? (besides the c

Re: [rspec-users] Failure/Error: Unable to find matching line from backtrace can't convert nil into String

2010-09-21 Thread David Chelimsky
On Sep 21, 2010, at 10:58 AM, Bruno Cardoso wrote: > I'm getting this errors from this spec: > http://pastie.org/private/lm9nrqnmhqobs1avf3skgw > > Failures: > 1) Account Account should have a relation belongs to with customer > Failure/Error: Unable to find matching line from backtrace >

Re: [rspec-users] Options for .rspec, or a verbose mode?

2010-09-21 Thread Lailson Bandeira
> > And I wanna know if is there a verbose mode of running my specs, listing > their 'describes' and/or 'its'? You can use --format documentation to do this. Is there some place where all the options are documented, folks? (besides the code =P) -- LAILSON BANDEIRA http://lailsonbandeira.com/ O

[rspec-users] rspec-rails 1.3.2 tests get loaded, but not executed

2010-09-21 Thread simo
Hello, Can anyone please help me with the following issue I am running rspec-rails 1.3.2 with rails 2.3.9 on ruby 1.8.7 Unfortunately my tests don't execute at all after i updated these gems although i followed the update insturctions. After some debugging i found that the describes and examples

[rspec-users] Failure/Error: Unable to find matching line from backtrace can't convert nil into String

2010-09-21 Thread Bruno Cardoso
I'm getting this errors from this spec: http://pastie.org/private/lm9nrqnmhqobs1avf3skgw Failures: 1) Account Account should have a relation belongs to with customer Failure/Error: Unable to find matching line from backtrace can't convert nil into String # D:\ruby\rubies\jruby-1.

[rspec-users] Conditional before() blocks in spec_helper based on metadata?

2010-09-21 Thread John Feminella
I have some tests that need to load my application's seed data prior to running, and others that don't. It's a well-defined set of examples: describe "needs seed data", :needs_data => true do ... end What can I put in my Rspec.configure { ... } block so that every test which has ":

[rspec-users] Options for .rspec, or a verbose mode?

2010-09-21 Thread rodrigo3n
Hello everybody, in my app, (using rspec 2.0.0.beta22) I have my .rspec file with "--colour" in it., I want to know if are there any other options for this file? And I wanna know if is there a verbose mode of running my specs, listing their 'describes' and/or 'its'? Thanks! ___

Re: [rspec-users] RSpec beta 22 with Rails 3

2010-09-21 Thread David Chelimsky
On Sep 21, 2010, at 4:08 AM, Amiruddin Nagri wrote: > I am working on a Rails 3 application. Recently bundler got an update for > rspec, which upgraded it to 22, (previously we were using beta 20). > > After the update we are unable to run the old using 'rake spec:rcov', while > running with

Re: [rspec-users] How do I test my Module?

2010-09-21 Thread Gene Angelo
Ben Mabey wrote: > On 9/21/10 6:51 AM, Gene Angelo wrote: >> I think I understand basic Class testing, however, how do I test a >> Module's behavior especially (in my case) where the Module will be used >> as an extension primarily e.g. object.extend MyModule. > One option is to extend an object in

Re: [rspec-users] undefined method `has_selector?' for "":String

2010-09-21 Thread Wincent Colaiuta
El 21/09/2010, a las 13:55, David Chelimsky escribió: > On Sep 21, 2010, at 4:57 AM, Lord Raiden wrote: > >> David Chelimsky wrote: > >> Reason I'm asking is I really want to write few view specs, (outside of >> cucumber), and I would like not to use Webrat, to keep things clean. > > Why would

Re: [rspec-users] How do I test my Module?

2010-09-21 Thread Ben Mabey
On 9/21/10 6:51 AM, Gene Angelo wrote: I think I understand basic Class testing, however, how do I test a Module's behavior especially (in my case) where the Module will be used as an extension primarily e.g. object.extend MyModule. One option is to extend an object in your spec like so: descr

[rspec-users] How do I test my Module?

2010-09-21 Thread Gene Angelo
I think I understand basic Class testing, however, how do I test a Module's behavior especially (in my case) where the Module will be used as an extension primarily e.g. object.extend MyModule. -- Posted via http://www.ruby-forum.com/. ___ rspec-users ma

Re: [rspec-users] spec for derived classes question

2010-09-21 Thread Gene Angelo
Pat Maddox wrote: > search this page for "shared example groups" > http://rspec.info/documentation/ thank you, exactly what I was looking for. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyf

Re: [rspec-users] undefined method `has_selector?' for "":String

2010-09-21 Thread David Chelimsky
On Sep 21, 2010, at 4:57 AM, Lord Raiden wrote: > David Chelimsky wrote: >> Two issues: >> >> 1. Capybara matchers do not support arbitrary strings, so they do not >> work in view specs >> 2. Even if they did, the capybara matcher would be has_css, not >> has_selector > > Thanks for quick repl

Re: [rspec-users] undefined method `has_selector?' for "":String

2010-09-21 Thread David Chelimsky
On Sep 21, 2010, at 6:55 AM, David Chelimsky wrote: > On Sep 21, 2010, at 4:57 AM, Lord Raiden wrote: > >> David Chelimsky wrote: >>> Two issues: >>> >>> 1. Capybara matchers do not support arbitrary strings, so they do not >>> work in view specs >>> 2. Even if they did, the capybara matcher w

Re: [rspec-users] undefined method `has_selector?' for "":String

2010-09-21 Thread Lord Raiden
David Chelimsky wrote: > Two issues: > > 1. Capybara matchers do not support arbitrary strings, so they do not > work in view specs > 2. Even if they did, the capybara matcher would be has_css, not > has_selector Thanks for quick reply. Sorry about my delay (I was sick and down). I'm not an ex

Re: [rspec-users] spec for derived classes question

2010-09-21 Thread Pat Maddox
search this page for "shared example groups" http://rspec.info/documentation/ On Sep 20, 2010, at 12:07 PM, Gene Angelo wrote: > I assume spec tests be repeated for derived classes? > > Is there such a thing in rspec as deriving specs? > -- > Posted via http://www.ruby-forum.com/. > __

[rspec-users] RSpec beta 22 with Rails 3

2010-09-21 Thread Amiruddin Nagri
I am working on a Rails 3 application. Recently bundler got an update for rspec, which upgraded it to 22, (previously we were using beta 20). After the update we are unable to run the old using 'rake spec:rcov', while running with 'rake spec' is running fine. When you do rake spec it does not give