lib/pah/files/spec/support/http_basic_auth.rb in pah-0.0.15 vs lib/pah/files/spec/support/http_basic_auth.rb in pah-0.0.16

- old
+ new

@@ -1,8 +1,8 @@ module AuthSpec def http_basic_login! - request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials('usuario','senha') + request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials('usuario', 'senha') end end module CapybaraAuthSpec def http_basic_login! @@ -13,10 +13,10 @@ elsif page.driver.respond_to?(:basic_authorize) page.driver.basic_authorize(name, password) elsif page.driver.respond_to?(:browser) && page.driver.browser.respond_to?(:basic_authorize) page.driver.browser.basic_authorize(name, password) else - raise "I don't know how to log in!" + fail "I don't know how to log in!" end end end RSpec.configure do |config|