Revision abd8f1d1
Added by Daniel Lobato Garcia over 9 years ago
test/functional/api/v1/users_controller_test.rb | ||
---|---|---|
require 'test_helper'
|
||
|
||
class Api::V1::UsersControllerTest < ActionController::TestCase
|
||
|
||
valid_attrs = { :login => "johnsmith" }
|
||
|
||
def setup
|
||
... | ... | |
|
||
mod_user = User.find_by_id(user.id)
|
||
assert mod_user.matching_password?("dummy")
|
||
|
||
end
|
||
|
||
test "should detect password validation mismatches" do
|
||
... | ... | |
get :show, { :id => users(:anonymous).id }
|
||
assert_response :not_found
|
||
end
|
||
|
||
end
|
Also available in: Unified diff
Refs #3809 - Remove cops for empty lines