annotate test/lib/legit_client_test.rb @ 253:d726e8b92dd1

Support animated gif (same as video)
author nanaya <me@nanaya.net>
date Mon, 25 Mar 2024 02:49:50 +0900
parents 43cbceac80ab
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
251
43cbceac80ab Remove model test and add client test
nanaya <me@nanaya.net>
parents:
diff changeset
1 require 'test_helper'
43cbceac80ab Remove model test and add client test
nanaya <me@nanaya.net>
parents:
diff changeset
2
43cbceac80ab Remove model test and add client test
nanaya <me@nanaya.net>
parents:
diff changeset
3 class LegitClientTest < ActiveSupport::TestCase
43cbceac80ab Remove model test and add client test
nanaya <me@nanaya.net>
parents:
diff changeset
4 test 'loads timeline' do
43cbceac80ab Remove model test and add client test
nanaya <me@nanaya.net>
parents:
diff changeset
5 assert_not_nil LegitClient.timeline('2791517370')
43cbceac80ab Remove model test and add client test
nanaya <me@nanaya.net>
parents:
diff changeset
6 end
43cbceac80ab Remove model test and add client test
nanaya <me@nanaya.net>
parents:
diff changeset
7
43cbceac80ab Remove model test and add client test
nanaya <me@nanaya.net>
parents:
diff changeset
8 test 'loads user_by_id' do
43cbceac80ab Remove model test and add client test
nanaya <me@nanaya.net>
parents:
diff changeset
9 assert_not_nil LegitClient.user_by_id('2791517370')
43cbceac80ab Remove model test and add client test
nanaya <me@nanaya.net>
parents:
diff changeset
10 end
43cbceac80ab Remove model test and add client test
nanaya <me@nanaya.net>
parents:
diff changeset
11
43cbceac80ab Remove model test and add client test
nanaya <me@nanaya.net>
parents:
diff changeset
12 test 'loads user_by_username' do
43cbceac80ab Remove model test and add client test
nanaya <me@nanaya.net>
parents:
diff changeset
13 assert_not_nil LegitClient.user_by_username('edogawa_test')
43cbceac80ab Remove model test and add client test
nanaya <me@nanaya.net>
parents:
diff changeset
14 end
43cbceac80ab Remove model test and add client test
nanaya <me@nanaya.net>
parents:
diff changeset
15 end