Re: [rspec-users] Using RSpec and Cucumber with Rails 3 Engines

2010-06-28 Thread aslak hellesoy
On Tue, Jun 29, 2010 at 4:58 AM, Brandon Olivares wrote: > Hi, > > I recently upgraded to Rails 3 beta, a few weeks ago. One thing I would > really like to do is to develop components of my application, because some > of them I'd really like to be able to reuse on other projects. I know how to > m

Re: [rspec-users] undefined method

2010-06-28 Thread bertly_the_coder
Thanks David, That helps a lot and makes a lot of sense. Neat article by the way, was following to get a hang on rspec. Cheers! On Jun 28, 3:00 pm, David Chelimsky wrote: > On Jun 28, 2010, at 1:14 PM, bertly_the_coder wrote: > > > > > Hey Guys, > > I am working on my first TDD/BDDD example and

[rspec-users] Using RSpec and Cucumber with Rails 3 Engines

2010-06-28 Thread Brandon Olivares
Hi, I recently upgraded to Rails 3 beta, a few weeks ago. One thing I would really like to do is to develop components of my application, because some of them I'd really like to be able to reuse on other projects. I know how to make engines well enough, but it seems difficult or impossible to test

Re: [rspec-users] Rspec

2010-06-28 Thread David Chelimsky
On Jun 28, 2010, at 3:03 PM, Curtis j Schofield wrote: > On Mon, Jun 28, 2010 at 11:50 AM, David Chelimsky > wrote: >> On Jun 28, 2010, at 1:31 PM, Curtis j Schofield wrote: >> >>> Hi - I extracted some methods in a refactor and put them into a nice >>> module and i'm in the process of making su

Re: [rspec-users] Rspec

2010-06-28 Thread Curtis j Schofield
Any suggestions for how to detect that the methods are getting executed that need to get executed? On Mon, Jun 28, 2010 at 11:50 AM, David Chelimsky wrote: > On Jun 28, 2010, at 1:31 PM, Curtis j Schofield wrote: > >> Hi - I extracted some methods in a refactor and put them into a nice >> module

Re: [rspec-users] undefined method

2010-06-28 Thread David Chelimsky
On Jun 28, 2010, at 1:14 PM, bertly_the_coder wrote: > Hey Guys, > I am working on my first TDD/BDDD example and running into a problem, > when I run 'ruby app.rb" The app seems to run fine, but when I run > it's rspec 'spec app_spec.rb" I get a no method defined. > > app.rb > require 'rubygems'

Re: [rspec-users] Rspec

2010-06-28 Thread David Chelimsky
On Jun 28, 2010, at 1:31 PM, Curtis j Schofield wrote: > Hi - I extracted some methods in a refactor and put them into a nice > module and i'm in the process of making sure it is covered as a > first-class unit. > > I'm getting some strange behavior with what seems really straight forward > code

[rspec-users] Rspec

2010-06-28 Thread Curtis j Schofield
Hi - I extracted some methods in a refactor and put them into a nice module and i'm in the process of making sure it is covered as a first-class unit. I'm getting some strange behavior with what seems really straight forward code. https://gist.github.com/6d54448d70b07a126c51 _

[rspec-users] undefined method

2010-06-28 Thread bertly_the_coder
Hey Guys, I am working on my first TDD/BDDD example and running into a problem, when I run 'ruby app.rb" The app seems to run fine, but when I run it's rspec 'spec app_spec.rb" I get a no method defined. app.rb require 'rubygems' require 'open-uri' require 'hpricot' class Timer #this is t

Re: [rspec-users] rspec 2 not cleaning up after examples run?

2010-06-28 Thread David Chelimsky
On Jun 28, 2010, at 10:30 AM, Timo Rößner wrote: > On Jun 28, 5:03 pm, David Chelimsky wrote: >> On Jun 28, 2010, at 10:00 AM, Timo Rößner wrote: >> >> >> >>> Hey guys, >> >>> I let the code speak for itself: >> >>> Below are my currently failing specs, please don't pay too much >>> attentio

Re: [rspec-users] rspec 2 not cleaning up after examples run?

2010-06-28 Thread Timo Rößner
Hey David, I just tried it out using the latest rspec and rspec-rails: Gemfile: gem 'rspec', '2.0.0.beta.14' gem 'rspec-rails', '2.0.0.beta.14.1 $ bundle show rspec ~/.bundle/ruby/1.8/gems/rspec-2.0.0.beta.14 $bundle show rspec-rails ~/.bundle/ruby/1.8/gems/rspec-rails-2.0.0.beta.14.1 Unf

Re: [rspec-users] rspec 2 not cleaning up after examples run?

2010-06-28 Thread David Chelimsky
On Jun 28, 2010, at 10:00 AM, Timo Rößner wrote: > Hey guys, > > I let the code speak for itself: > > Below are my currently failing specs, please don't pay too much > attention to the specs themselves, I just want to give you a "real > life example" of what's happening - the only interesting th

[rspec-users] rspec 2 not cleaning up after examples run?

2010-06-28 Thread Timo Rößner
Hey guys, I let the code speak for itself: Below are my currently failing specs, please don't pay too much attention to the specs themselves, I just want to give you a "real life example" of what's happening - the only interesting thing about the specs is that there is a call to Factory(:challeng

Re: [rspec-users] Rake spec failure in beta.13

2010-06-28 Thread David Chelimsky
On Jun 28, 2010, at 6:10 AM, Julien wrote: > On Jun 27, 5:39 am, David Chelimsky wrote: >> On Jun 26, 2010, at 10:38 PM, geetarista wrote: >> What I believe to be the fix is now up in github. Geetarista, would you do me a favor and update your gemfile to point to the git repos: >> >>

Re: [rspec-users] ApplicationController helper methods in view specs?

2010-06-28 Thread David Chelimsky
On Jun 28, 2010, at 12:22 AM, Alex Crichton wrote: > I've got some helper methods in my ApplicationController which the > views use. In the view specs the methods are all undefined, however. > Is this intended and is there some setting I need to use to get the > methods included? View specs don't

Re: [rspec-users] Autotest just returns

2010-06-28 Thread David Chelimsky
On Sun, Jun 27, 2010 at 8:14 PM, Don French wrote: > On Jun 27, 2:09 pm, David Chelimsky wrote: >> On Jun 27, 2010, at 6:51 PM, Don French wrote: >> >> > I am trying to use rspec2 rails with rails3 beta 4. I created a simple >> > project and a couple of models. The basic test spec files are there

[rspec-users] ApplicationController helper methods in view specs?

2010-06-28 Thread Alex Crichton
I've got some helper methods in my ApplicationController which the views use. In the view specs the methods are all undefined, however. Is this intended and is there some setting I need to use to get the methods included? ___ rspec-users mailing list rspe

Re: [rspec-users] Rake spec failure in beta.13

2010-06-28 Thread Julien
Thank you all for this discussion and the fix I ran into the same issue this morning, but with "Factory" being the class that was undefined (using Factory Girl) The fix explained in this discussion worked for me. As a reminder for others : 1 - update spec_helper require File.expand_path("../..