broken pipe quest

This commit is contained in:
2014-08-13 15:17:27 +02:00
parent 031e2bedea
commit 3fc7030002
13 changed files with 41 additions and 53 deletions
+10 -16
View File
@@ -46,11 +46,11 @@ module SpecSelectorHelpers
end
class TestCounter < InMemoryQCounter
def incr(*args)
result = super
puts "Counter incr called with #{args.inspect} giving result #{result}"
result
end
#def incr(*args)
#result = super
#puts "Counter incr called with #{args.inspect} giving result #{result}"
#result
#end
end
if defined?(Couchbase)
@@ -70,7 +70,7 @@ RSpec.configure do |config|
# config.mock_with :mocha
# config.mock_with :flexmock
# config.mock_with :rr
config.mock_with :rspec
#config.mock_with :rspec
config.include FactoryGirl::Syntax::Methods
config.include FactoryAttributesFor
config.include Devise::TestHelpers, type: :controller
@@ -126,10 +126,10 @@ RSpec.configure do |config|
Qwaiter::Counter.connection.flush
end
config.before :each, type: :feature do
#Supplier.any_instance.stub send_confirmation_instructions: true
Capybara.session_name = :default
end
config.before :each, type: :feature do
#Supplier.any_instance.stub send_confirmation_instructions: true
Capybara.session_name = :default
end
config.after :suite do
rspec_outfile = Rails.root.join('coverage/rspec_results.html')
@@ -144,10 +144,4 @@ RSpec.configure do |config|
# automatically. This will be the default behavior in future versions of
# rspec-rails.
#config.infer_base_class_for_anonymous_controllers = true
def sign_in_user_through_request
visit "/users/sign_in"
fill_in 'user[email]', with: @user.email
fill_in 'user[password]', with: @user.password
click_on 'Inloggen'
end
end