interactive_rspec icon indicating copy to clipboard operation
interactive_rspec copied to clipboard

How do I reload a changed view in the test console?

Open gsmendoza opened this issue 13 years ago • 1 comments

Hello,

I noticed that, if config.cache_classes == true, I have to reload an app class before I run irspec on it:

load 'app/models/note.rb'
irspec 'spec/models/note_spec.rb'

It looks like I also have to reload views when I change them, but I don't know how. Do you have an idea how to do this?

Anyway, thank you very much for the gem. It worked out of the box compared to spork :)

Thanks,

George

gsmendoza avatar Mar 05 '12 02:03 gsmendoza

For running rails specs:

 > reload! # reloads your app code
 > FactoryGirl.reload! # if you are using factory girl since when reloading your app old classes are replaced with new ones
 > irspec 'spec'

maca avatar Sep 05 '12 19:09 maca