Skip to content

Commit

Permalink
use static vars for test
Browse files Browse the repository at this point in the history
  • Loading branch information
phoet committed Dec 26, 2011
1 parent 4f989ff commit e70f78d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/karotz_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ module Karotz

describe Client do
it "should create a signed url" do
Client.start_url(@install_id, @api_key, @secret, '7112317', '1324833464').should eql('http://api.karotz.com/api/karotz/start?apikey=7afdd4b7-3bc8-4469-bda2-1d8bc1e218a0&installid=1a9bf66d-6a47-4f6e-a260-d42fd70a5583&once=7112317&timestamp=1324833464&signature=hhE0T+UwSTD1aCfaE6MJXshYDHs=')
args = ['INSTALL_ID', 'API_KEY', 'SECRET', '7112317', '1324833464']
url = "http://api.karotz.com/api/karotz/start?apikey=API_KEY&installid=INSTALL_ID&once=7112317&timestamp=1324833464&signature=Vb+yZK3eNlXGh+9DfnwIqQ+ZIAE="
Client.start_url(*args).should eql(url)
end

context "ears" do
Expand Down

0 comments on commit e70f78d

Please sign in to comment.