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

2011-01-09 Thread Marko Anastasov
Hello, I set a value in controller spec using @request.cookies: https://gist.github.com/371356ba0a19666fd3b5 but when the controller reads it, it's nil somehow, as this screenshot from the debugger shows: http://dl.dropbox.com/u/830772/p/Selection_033.jpeg This does not occur in development envi

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

2011-01-10 Thread Marko Anastasov
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.cookies: >> https://gist.github.com/371356ba0a19666fd3b5 >> >> but when the cont

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

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, >

Re: [rspec-users] running rspec alongside test::unit?

2011-09-27 Thread Marko Anastasov
On Tue, Sep 20, 2011 at 00:50, Jason Perkins wrote: > Earlier documentation indicated that it was possible to run RSpec alongside > existing test::unit tests. Is this still possible? > It's possible, I'm involved in one project that has been using test::unit in the past and has still not complet

[rspec-users] rake spec aborted, how to debug

2011-11-24 Thread Marko Anastasov
Hello, I'm having an issue running specs on a Rails project. Here's how bundle exec rake spec --trace ends at a random point after some seconds of hanging with a high CPU usage: https://gist.github.com/1392208 I say "a random point" because I can run the problematic spec alone without problems, a

Re: [rspec-users] rake spec aborted, how to debug

2011-12-19 Thread Marko Anastasov
For the record, the issue was accidentally assigning a mock User to Time.zone in a controller spec. Rails and RSpec would go in an endless loop of calling and recording a message. On Thu, Nov 24, 2011 at 21:38, Marko Anastasov wrote: > Hello, > > I'm having an issue running sp

[rspec-users] Accidentally overriding exit code of specs

2012-11-29 Thread Marko Anastasov
Hello, Is it possible to write something in spec_helper.rb which would make "rake spec" start returning wrong exit code (zero) when there are failing specs? Something with config.around(:each) for example. I'm wondering because at https://semaphoreapp.com we sometimes have support questions wh

Re: [rspec-users] Accidentally overriding exit code of specs

2012-11-29 Thread Marko Anastasov
On Thu, Nov 29, 2012 at 4:23 PM, Andy Lindeman wrote: > On Thu, Nov 29, 2012 at 9:59 AM, Marko Anastasov > wrote: > > Is it possible to write something in spec_helper.rb which would make > "rake spec" start returning wrong exit code (zero) when there are failin