Re: [rspec-users] Difference between :each and :all

2011-01-27 Thread Jon Homan
does" do end end You'd see something like this in the output: done one time done once for every example done once for every example Again, this is just my understanding. Could be wrong. Jon Homan On Thu, Jan 27, 2011 at 4:56 PM, Brian Warner wrote: > I'm having a hard time

Re: [rspec-users] Good tutorial for RSpec With Rails 3

2011-03-10 Thread Jon Homan
I recommend getting a copy of The RSpec Book ( http://www.pragprog.com/titles/achbd/the-rspec-book). I read through that when I was fairly new to RSpec and I think it helped ramp up quickly. Jon Homan On Thu, Mar 10, 2011 at 5:52 AM, Mohnish J. wrote: > Hi, > > I am looking for a

Re: [rspec-users] before(:each) <- need some clarification

2011-04-27 Thread Jon Homan
Sergio, I believe you need to make text an instance variable: @text = "string here" Or you could use a let block: let(:text) do "string "here" end Then you could continue to reference the text variable as you do now. Jon Homan On Wed, Apr 27, 201