Remove duplicate test TokenTest#test_find_token_should_return_nil_with_wrong_action.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11768 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e6ab36d205
commit
84e455b583
@ -96,11 +96,6 @@ class TokenTest < ActiveSupport::TestCase
|
|||||||
assert_nil Token.find_token('api', token.value)
|
assert_nil Token.find_token('api', token.value)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_find_token_should_return_nil_with_wrong_action
|
|
||||||
token = Token.create!(:user_id => 1, :action => 'feeds')
|
|
||||||
assert_nil Token.find_token('api', Token.generate_token_value)
|
|
||||||
end
|
|
||||||
|
|
||||||
def test_find_token_should_return_nil_without_user
|
def test_find_token_should_return_nil_without_user
|
||||||
token = Token.create!(:user_id => 999, :action => 'api')
|
token = Token.create!(:user_id => 999, :action => 'api')
|
||||||
assert_nil Token.find_token('api', token.value)
|
assert_nil Token.find_token('api', token.value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user