Look in spec/spec_helper.rb for the configuration block, and hook up your
custom stuff there:
Spec::Runner.configured do |config|
config.before(:each) { AfterFixturesLoaded.custom_stuff1 }
config.after(:each) { AfterFixturesLoaded.custom_stuff1 }
end
Pat
On Feb 16, 2010, at 8:48 AM, Ben F
On Tue, Feb 16, 2010 at 10:48 AM, Ben Fyvie wrote:
> I have some code that adds to the callbacks that rspec-rails adds by default
> to href="http://github.com/dchelimsky/rspec-rails/blob/master/lib/spec/rails/interop/testcase.rb";>setup
> and teardown fixtures.
>
>
>
> My code looks something lik
I have some code that adds to the callbacks that rspec-rails adds by default
to http://github.com/dchelimsky/rspec-rails/blob/master/lib/spec/rails/in
terop/testcase.rb">setup and teardown fixtures.
My code looks something like:
module Test
module Unit
class TestCase