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:
Jean-Baptiste Barth 2013-05-02 18:37:20 +00:00
parent e6ab36d205
commit 84e455b583

View File

@ -96,11 +96,6 @@ class TokenTest < ActiveSupport::TestCase
assert_nil Token.find_token('api', token.value)
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
token = Token.create!(:user_id => 999, :action => 'api')
assert_nil Token.find_token('api', token.value)