comparison test/lib/legit_client_test.rb @ 264:4f86037f6e6a

Identifiable rate limited client
author nanaya <me@nanaya.net>
date Sun, 09 Feb 2025 03:48:26 +0900
parents e2150dce4e90
children
comparison
equal deleted inserted replaced
263:2fc76c51e184 264:4f86037f6e6a
1 require "test_helper" 1 require "test_helper"
2 2
3 class LegitClientTest < ActiveSupport::TestCase 3 class LegitClientTest < ActiveSupport::TestCase
4 test "loads timeline" do 4 test "loads timeline" do
5 assert_not_nil LegitClient.timeline("2791517370") 5 assert_not_nil LegitClient.new.timeline("2791517370")
6 end 6 end
7 7
8 test "loads user_by_id" do 8 test "loads user_by_id" do
9 assert_not_nil LegitClient.user_by_id("2791517370") 9 assert_not_nil LegitClient.new.user_by_id("2791517370")
10 end 10 end
11 11
12 test "loads user_by_username" do 12 test "loads user_by_username" do
13 assert_not_nil LegitClient.user_by_username("edogawa_test") 13 assert_not_nil LegitClient.new.user_by_username("edogawa_test")
14 end 14 end
15 end 15 end