Add couchbase with modifications, formalize broadcaster and make testable and some other stuff
This commit is contained in:
@@ -43,6 +43,10 @@ module SpecSelectorHelpers
|
||||
%x(launchy http://localhost:3000/capybara.html)
|
||||
end
|
||||
end
|
||||
|
||||
# NOT THREADSAFE!!!!!! but good enough for testing since the real couchbase flush is slowwwwww....
|
||||
Qwaiter::Counter.connection = InMemoryQCounter.new
|
||||
|
||||
RSpec.configure do |config|
|
||||
# == Mock Framework
|
||||
#
|
||||
@@ -56,6 +60,7 @@ RSpec.configure do |config|
|
||||
config.include FactoryAttributesFor
|
||||
config.include Devise::TestHelpers, type: :controller
|
||||
config.include EndWithMatcher
|
||||
config.include Matchers
|
||||
config.include Features::BasicHelpers, type: :feature
|
||||
config.include SpecRouteHelpers, type: :feature
|
||||
#config.use_transactional_fixtures = true
|
||||
@@ -98,6 +103,7 @@ RSpec.configure do |config|
|
||||
|
||||
config.before :each do
|
||||
CouchPotato.couchrest_database.recreate!
|
||||
Qwaiter::Counter.connection.flush
|
||||
end
|
||||
|
||||
config.before :each, type: :feature do
|
||||
|
||||
Reference in New Issue
Block a user