annotate test/lib/legit_client_test.rb @ 257:c6a50441a58d

It's now X
author nanaya <me@nanaya.net>
date Sun, 15 Dec 2024 22:48:25 +0900
parents 43cbceac80ab
children e2150dce4e90
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