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

2011-01-12 Thread Jason Nah
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 * Rspec-rails 2.4.1 * Rails 3 * Mocha 0.9.10 I have the following defined in

[rspec-users] Spec output no longer displays with results

2011-01-12 Thread Kurt
In RSpec 1.x, a print statement in the spec would print out with the results from that spec. In RSpec 2.x, the print statements are separated from the spec results. Is there a way to restore the 1.x behavior, so quick debugging work we do with print statements can easily be associated with the te

Re: [rspec-users] Can you control $stdout when specs are running?

2011-01-12 Thread David Chelimsky
On Jan 12, 2011, at 9:52 AM, Chuck Remes wrote: > > On Sep 30, 2010, at 10:06 AM, GregD wrote: > >> Hi all, >> >> I'm testing java classed using rspec and jruby. The java super class >> is trapping an exception and sending a custom message to stdout along >> with the original exception meaasa

Re: [rspec-users] Can you control $stdout when specs are running?

2011-01-12 Thread shea
Why not stub System.out.println, possibly with message expectations if necessary? > > On Sep 30, 2010, at 10:06 AM, GregD wrote: > >> Hi all, >> >> I'm testing java classed using rspec and jruby. The java super class >> is trapping an exception and sending a custom message to stdout along >> with

[rspec-users] No examples were matched.

2011-01-12 Thread Nadal
I am using rspec-rails 2.4.1 on a rails3 (3.0.3) app. I have around 20 specs. When I run rake spec all 20 specs run fine. However when I do bundle exec rspec then I get this message. No examples were matched. Perhaps {:unless=>#, :if=>#} is excluding everything? __

Re: [rspec-users] Can you control $stdout when specs are running?

2011-01-12 Thread David J . Hamilton
Excerpts from Chuck Remes's message of Wed Jan 12 07:52:58 -0800 2011: > I'd like to bump this message because I am facing a similar situation. > > What's a good technique for spec'ing code that prints to STDOUT yet keeps the > spec output nice and clean? I can't promise that what follows is a

Re: [rspec-users] Can you control $stdout when specs are running?

2011-01-12 Thread Chuck Remes
On Sep 30, 2010, at 10:06 AM, GregD wrote: > Hi all, > > I'm testing java classed using rspec and jruby. The java super class > is trapping an exception and sending a custom message to stdout along > with the original exception meaasage. The original exception is a > SAXParseException, if that

Re: [rspec-users] Installing rspec 2 for Rails 3

2011-01-12 Thread Amit Kulkarni
Thanks a lot.Will look into it. -- 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] Results in rspec 2.4.0

2011-01-12 Thread Mike Mazur
Hi, On Wed, Jan 12, 2011 at 15:45, Amit Kulkarni wrote: > When running the script i am getting output as > User Profile should not be created if name is blank >     Failure/Error: @contact_detail.should be_valid >       expected valid? to return true, got false >     # ./spec/models/merchant_spec

Re: [rspec-users] Cookie value set in spec, but controller can't read it

2011-01-12 Thread Marko Anastasov
On Tue, Jan 11, 2011 at 17:33, David Chelimsky wrote: > > On Jan 10, 2011, at 8:27 AM, Marko Anastasov wrote: > >> On Mon, Jan 10, 2011 at 05:05, David Chelimsky wrote: >>> On Jan 5, 2011, at 11:54 AM, Marko Anastasov wrote: >>> Hello, I set a value in controller spec using @request

Re: [rspec-users] Installing rspec 2 for Rails 3

2011-01-12 Thread Marko Anastasov
On Wed, Jan 12, 2011 at 09:19, Amit Kulkarni wrote: > Hi, > I have successfully installed rspec 2 for Rails 3 by visiting the > following  link > http://lindsaar.net/2010/4/14/installing_rspec_for_rails_3 > In this post it is mentioned taht when i do "rails g rspec:install" > then it should instal

[rspec-users] Installing rspec 2 for Rails 3

2011-01-12 Thread Amit Kulkarni
Hi, I have successfully installed rspec 2 for Rails 3 by visiting the following link http://lindsaar.net/2010/4/14/installing_rspec_for_rails_3 In this post it is mentioned taht when i do "rails g rspec:install" then it should install exist lib create lib/tasks/rspec.rake exist con

[rspec-users] Results in rspec 2.4.0

2011-01-12 Thread Amit Kulkarni
Hi, I am running rspec spec for Rails 3.The version for rspec is 2.4.0 When running the script i am getting output as User Profile should not be created if name is blank Failure/Error: @contact_detail.should be_valid expected valid? to return true, got false # ./spec/models/merchan