[rspec-users] found some inconsistently behavior on its method.

2011-01-13 Thread Nori Hamamoto
Hi there, I've just started using rspec and rspec-rails (both are the newest version on git repository). I met some inconsistently behavior on it method and its method. The following is the way to reproduce it: command line: > script/generate spec_controller product show Modify a file spec/prod

Re: [rspec-users] when using command line -l, why do tests from other describe blocks run?

2011-01-13 Thread Lille
Still can't get consistent behavior with -l, consider the following.. test_spec.rb > describe SomeModule > it # special it > describe "some method of the module" > it... # 'lonely it' > it... # 'lonely it' > it..

Re: [rspec-users] Preloading of data in rspec2

2011-01-13 Thread Mike Mazur
Hi, On Thu, Jan 13, 2011 at 22:08, Amit Kulkarni wrote: > I had used Fixtures and factory girl for preloading of data in earlier > version rspec. > Is there any new thing for loading of data in rspec 2 or do we have to > use the same. I have a spec/fixtures/ directory containing YAML files with

Re: [rspec-users] `rake spec` with rails 3.0.3 and rspec-rails 2.4.1

2011-01-13 Thread David Chelimsky
On Jan 13, 2011, at 4:17 PM, Michael Guterl wrote: > On Thu, Jan 13, 2011 at 4:40 PM, David Chelimsky wrote: >> >> On Jan 13, 2011, at 3:17 PM, Michael Guterl wrote: >> >>> We're upgrading a rails 2.3.x application to Rails 3. When running >>> `rake spec` no specs are running. >>> >>> $ rake

Re: [rspec-users] `rake spec` with rails 3.0.3 and rspec-rails 2.4.1

2011-01-13 Thread Michael Guterl
On Thu, Jan 13, 2011 at 4:40 PM, David Chelimsky wrote: > > On Jan 13, 2011, at 3:17 PM, Michael Guterl wrote: > >> We're upgrading a rails 2.3.x application to Rails 3.  When running >> `rake spec` no specs are running. >> >> $ rake spec --trace >> (in /Users/michaelguterl/code/rm/board) >> ** In

Re: [rspec-users] `rake spec` with rails 3.0.3 and rspec-rails 2.4.1

2011-01-13 Thread David Chelimsky
On Jan 13, 2011, at 3:17 PM, Michael Guterl wrote: > We're upgrading a rails 2.3.x application to Rails 3. When running > `rake spec` no specs are running. > > $ rake spec --trace > (in /Users/michaelguterl/code/rm/board) > ** Invoke spec (first_time, not_needed) > > $ gem list | grep rspec >

[rspec-users] `rake spec` with rails 3.0.3 and rspec-rails 2.4.1

2011-01-13 Thread Michael Guterl
We're upgrading a rails 2.3.x application to Rails 3. When running `rake spec` no specs are running. $ rake spec --trace (in /Users/michaelguterl/code/rm/board) ** Invoke spec (first_time, not_needed) $ gem list | grep rspec rspec (2.4.0) rspec-core (2.4.0) rspec-expectations (2.4.0) rspec-mocks

Re: [rspec-users] Notes on upgrading from RSpec 1 to RSpec 2

2011-01-13 Thread Jim Morris
On Jan 13, 10:36 am, Kurt wrote: > Hi -- Thanks for sharing all your tips.  I couldn't understand your > line about what replaces have_text, however.  I don't see a method > called "matches" or "match"... Sorry that should be... response.body.should match(/../) it is the standard text regexp ma

Re: [rspec-users] response.should have_text leads to undefined method `has_text?'

2011-01-13 Thread David Chelimsky
On Jan 13, 2011, at 1:04 PM, Kurt wrote: > Where are the changes to RSpec2 documented? I haven't been able to find a > list of changes that would include something like this removal of have_text. > Thanks. have_text being pulled is not documented yet. Oversight on my part. Just added an issu

Re: [rspec-users] Notes on upgrading from RSpec 1 to RSpec 2

2011-01-13 Thread David Chelimsky
On Jan 13, 2011, at 12:36 PM, Kurt wrote: > Hi -- Thanks for sharing all your tips. I couldn't understand your > line about what replaces have_text, however. I don't see a method > called "matches" or "match"... > > I think your list might be the start of an effort by users to document > RSpec2

Re: [rspec-users] response.should have_text leads to undefined method `has_text?'

2011-01-13 Thread Kurt
Where are the changes to RSpec2 documented? I haven't been able to find a list of changes that would include something like this removal of have_text. Thanks. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo

Re: [rspec-users] Notes on upgrading from RSpec 1 to RSpec 2

2011-01-13 Thread Kurt
Hi -- Thanks for sharing all your tips. I couldn't understand your line about what replaces have_text, however. I don't see a method called "matches" or "match"... I think your list might be the start of an effort by users to document RSpec2 the hard way, since a lot has changed that the core te

Re: [rspec-users] Preloading of data in rspec2

2011-01-13 Thread Aleksandar Simic
On Thu, Jan 13, 2011 at 2:08 PM, Amit Kulkarni wrote: > Hello, > I had used Fixtures and factory girl for preloading of data in earlier > version rspec. > Is there any new thing for loading of data in rspec 2 or do we have to > use the same. > Also is there any documentation link where i can get n

[rspec-users] Preloading of data in rspec2

2011-01-13 Thread Amit Kulkarni
Hello, I had used Fixtures and factory girl for preloading of data in earlier version rspec. Is there any new thing for loading of data in rspec 2 or do we have to use the same. Also is there any documentation link where i can get nice info about rspec 2 -- Posted via http://www.ruby-forum.com/.

Re: [rspec-users] Results in rspec 2.4.0

2011-01-13 Thread Amit Kulkarni
Hey, Thanks a lot for the presentation.It was really helpful. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] RSpec 2.4, named/restful routes falling apart...

2011-01-13 Thread Mike Mazur
Hi, On Thu, Jan 13, 2011 at 13:39, Jason Nah wrote: > I have the following defined in my routes file > > resources :users > > And a controller: > class UsersController < ApplicationController >    before_filter :load_user > >    def show >       redirect_to(user_path(@user)) >    end >    private

Re: [rspec-users] RSpec 2.4, named/restful routes falling apart...

2011-01-13 Thread David Chelimsky
On Jan 12, 2011, at 11:39 PM, Jason Nah wrote: > Guys, > > This could be me, but I thought I'd check > > For some reason, when I spec controllers, I run into this problem > (intermittently it would seem). Right now, I have a spec that fails > predictably. > > I'm using > * Rspec 2.4.0 > * Rsp