annotate test/lib/legit_client_test.rb @ 254:89f6c0016bab default tip

Update to latest rails
author nanaya <me@nanaya.net>
date Tue, 03 Sep 2024 19:21:25 +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