Module: ResponseSpecHelper

Defined in:
lib/whatcounts/spec/spec_helper.rb

Instance Method Summary collapse

Instance Method Details

#mock_failure_responseObject



12
13
14
# File 'lib/whatcounts/spec/spec_helper.rb', line 12

def mock_failure_response
  "FAILURE: Something went wrong"
end

#mock_invalid_password_responseObject



16
17
18
# File 'lib/whatcounts/spec/spec_helper.rb', line 16

def mock_invalid_password_response
  "Password (asdf) doesn't match entry for API user credentials in database"
end

#mock_success_responseObject



8
9
10
# File 'lib/whatcounts/spec/spec_helper.rb', line 8

def mock_success_response
  "SUCCESS: mail will be sent to [email protected]"
end