test/totter/client/decisions_test.rb in totter-0.3.1 vs test/totter/client/decisions_test.rb in totter-0.3.2
- old
+ new
@@ -21,11 +21,11 @@
def test_publish_decision
VCR.use_cassette 'decisions/publish' do
client = local_client
decision = client.create_decision(1)
choice = create_test_choice(client, decision.user_id, decision.id)
- result = client.publish_decision(decision.user_id, decision.id, question: 'Why is the sky blue?')
+ result = client.publish_decision(decision.user_id, decision.id, :question => 'Why is the sky blue?')
assert result.published_at
assert 1, result.choices.length
end
end
@@ -65,13 +65,13 @@
private
def create_test_choice(client, user_id, decision_id)
data = {
- image_url: 'http://recess.s3.amazonaws.com/default_avatars/v1/photo_1.png',
- subject: 'Test Image',
- link_url: 'http://seesaw.co',
- link_title: 'Seesaw'
+ :image_url => 'http://recess.s3.amazonaws.com/default_avatars/v1/photo_1.png',
+ :subject => 'Test Image',
+ :link_url => 'http://seesaw.co',
+ :link_title => 'Seesaw'
}
client.create_choice_for_image(user_id, decision_id, data)
end
end