spec/spec_helper.rb in sub_pub-0.0.3 vs spec/spec_helper.rb in sub_pub-0.0.6
- old
+ new
@@ -22,11 +22,11 @@
Bundler.require
#
# Rails loads this during its setup
#
- SubPub::ActiveRecordExtensions.run_initializers
+ SubPub::Railtie.run_initializers
#
# Test database
#
ActiveRecord::Base.establish_connection(
@@ -42,9 +42,11 @@
config.extend WithModel
#
# Ensure pubsub is enabled
#
- config.before do
+ config.before(:each) do
SubPub.enable
+ SubPub.scope = 'sub_pub'
+ SubPub.unsubscribe_all
end
end