Add couchbase with modifications, formalize broadcaster and make testable and some other stuff

This commit is contained in:
2014-03-06 18:08:39 +01:00
parent 3f117c76b0
commit 0e7a39b819
28 changed files with 456 additions and 35 deletions
+6
View File
@@ -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