annotate test/lib/legit_client_test.rb @ 261:8c47a69cbfdb

Missing default 8.0 bin
author nanaya <me@nanaya.net>
date Sun, 15 Dec 2024 23:01:58 +0900
parents e2150dce4e90
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
260
e2150dce4e90 Rubocop (rails) time
nanaya <me@nanaya.net>
parents: 251
diff changeset
1 require "test_helper"
251
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
260
e2150dce4e90 Rubocop (rails) time
nanaya <me@nanaya.net>
parents: 251
diff changeset
4 test "loads timeline" do
e2150dce4e90 Rubocop (rails) time
nanaya <me@nanaya.net>
parents: 251
diff changeset
5 assert_not_nil LegitClient.timeline("2791517370")
251
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
260
e2150dce4e90 Rubocop (rails) time
nanaya <me@nanaya.net>
parents: 251
diff changeset
8 test "loads user_by_id" do
e2150dce4e90 Rubocop (rails) time
nanaya <me@nanaya.net>
parents: 251
diff changeset
9 assert_not_nil LegitClient.user_by_id("2791517370")
251
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
260
e2150dce4e90 Rubocop (rails) time
nanaya <me@nanaya.net>
parents: 251
diff changeset
12 test "loads user_by_username" do
e2150dce4e90 Rubocop (rails) time
nanaya <me@nanaya.net>
parents: 251
diff changeset
13 assert_not_nil LegitClient.user_by_username("edogawa_test")
251
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