Skip to content

Commit

Permalink
Testing BasicAPI client
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Maddocks committed Oct 7, 2011
1 parent 0b31bc6 commit 5bf4aa8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/API/test_client.rb
Expand Up @@ -11,6 +11,9 @@ def test_oauth

# Just test if we can connect
ponoko.get_nodes

ponoko.post_product

end

def test_error_handling
Expand All @@ -36,5 +39,15 @@ def test_escape_params
resp = ponoko.get_products "fun/ky[] key"
p resp
end
def test_simple_auth
ponoko = Ponoko::BasicAPI.new env: :production,
app_key: 'not an app',
user_access_key: 'not a user'

# Just test that the call makes it to Ponoko. Don't care about the result
assert ponoko.get_products("fun/ky[] key"), "Just test that the call makes it to Ponoko. Don't care about the result"

p ponoko.post_product('key' => "fun/ky[] key")#, "Just test that the call makes it to Ponoko. Don't care about the result"
end

end

0 comments on commit 5bf4aa8

Please sign in to comment.