Closed jjoos closed 10 years ago
The Interactors
, Commands
and Queries
modules aren't stubbed constants, and thus they aren't cleared between tests.
@marten What's the best way to make sure those constant's are cleared between tests?
What I've been doing in the other integration tests is something like:
before do
stub_const 'Interactors', Module.new do
class CreateActivity
include Pavlov::Command
end
end
end
That way RSpec cleans up your stubbed class and nothing is shared between tests.
Rubocop doesn't like your code style, but once you fix those you can merge it in as far as I'm concerned.
There are still 6 tests breaking, since we're updating Factlink to be compatible with Pavlov:master