mirror of
https://github.com/redmine/redmine.git
synced 2025-11-06 13:25:44 +01:00
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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user