Re: [rspec-users] Problem with RSpec, Rails or Me? (I know the answer is me!!)

2011-12-19 Thread Ants Pants
On 19 December 2011 20:45, Pat Maddox wrote: > On Dec 19, 2011, at 11:00 AM, Ants Pants wrote: > > > This could just be my lack of knowledge of how Rails works but from the > following code in my RSpec test > > > > $stderr.puts "BEFORE: > #{@invitation.meeting.event.event_type.event_type_tim

Re: [rspec-users] Problem with RSpec, Rails or Me? (I know the answer is me!!)

2011-12-19 Thread Pat Maddox
On Dec 19, 2011, at 11:00 AM, Ants Pants wrote: > This could just be my lack of knowledge of how Rails works but from the > following code in my RSpec test > > $stderr.puts "BEFORE: > #{@invitation.meeting.event.event_type.event_type_time_units.inspect}" Can you please share your RSpec co

[rspec-users] Problem with RSpec, Rails or Me? (I know the answer is me!!)

2011-12-19 Thread Ants Pants
This could just be my lack of knowledge of how Rails works but from the following code in my RSpec test $stderr.puts "BEFORE: #{@invitation.meeting.event.event_type.event_type_time_units.inspect}" @invitation.save! EventTypeTimeUnit.all.each {|rec| $stderr.puts rec.inspect } $stderr.puts "

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 specs on a Rails proj