# File lib/generators/test_unit/templates/oauth_token_test.rb, line 47 def test_should_not_exchange_without_approval @token.authorize!(users(:quentin)) @access = @token.exchange! assert_not_equal false, @access assert @token.invalidated? assert_equal users(:quentin), @access.user assert @access.authorized? end