Skip to content

Commit

Permalink
fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
kookster committed Oct 11, 2011
1 parent 1c15a55 commit 8db7ac1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/test_the_castle_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,13 @@
class TestTheCastleClient < Test::Unit::TestCase

def setup
TheCastleClient.key = 'key'
TheCastleClient.secret = 'secret'
TheCastleClient.key = '9NmQzsWBWs8TyfJswqMmkmjwAH3ItNBIC72KLjQK'
TheCastleClient.secret = '592BSoaCb4FfwqsZ6Ql8WShVZ6HVnecR4Dk9lRfQ'
TheCastleClient.host = "development.prx.org"
TheCastleClient.port = 3001
TheCastleClient.port = 3000
TheCastleClient.version = 'v1'
end

def test_test_fixer
response = TheCastleClient.test_fixer
puts response.read_body
end

def test_account_data
response = TheCastleClient.account_data(7018, {:scale=>'week', :start_on=>'2010-01-01', :end_on=>'2010-04-01'})
puts response.read_body
Expand All @@ -24,12 +19,17 @@ def test_account_aggregates
response = TheCastleClient.account_aggregates(7018)
puts response.read_body
end

def test_piece_aggregates
response = TheCastleClient.piece_aggregates(37745)
puts response.read_body
end


def test_piece_data
response = TheCastleClient.piece_data(37745, {:scale=>'week', :start_on=>'2010-01-01', :end_on=>'2010-04-01'})
puts response.read_body
end

def test_popular_pieces
response = TheCastleClient.popular_pieces(Date.parse('2011-01-03'), 10)
puts response.read_body
Expand Down

0 comments on commit 8db7ac1

Please sign in to comment.