dummy/test/unit/user_test.rb in dailycred-0.1.36 vs dummy/test/unit/user_test.rb in dailycred-0.1.41
- old
+ new
@@ -56,9 +56,14 @@
test 'firing an event' do
assert_true json_response(@user.fire_event 'got tested')['worked']
end
+ test 'making a referral link' do
+ id = @user.uid
+ assert_equal @user.referral_link('http://me.com'), "https://www.dailycred.com/r/#{id}?redirect_uri=http://me.com"
+ end
+
def json_response response
JSON.parse response.body
end
\ No newline at end of file