Mercurial > rsstweet
changeset 251:43cbceac80ab
Remove model test and add client test
author | nanaya <me@nanaya.net> |
---|---|
date | Mon, 17 Jul 2023 20:54:04 +0900 |
parents | be0b78fb5f57 |
children | 151bc6d97d39 |
files | test/lib/legit_client_test.rb test/models/tweet_test.rb |
diffstat | 2 files changed, 15 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/lib/legit_client_test.rb Mon Jul 17 20:54:04 2023 +0900 @@ -0,0 +1,15 @@ +require 'test_helper' + +class LegitClientTest < ActiveSupport::TestCase + test 'loads timeline' do + assert_not_nil LegitClient.timeline('2791517370') + end + + test 'loads user_by_id' do + assert_not_nil LegitClient.user_by_id('2791517370') + end + + test 'loads user_by_username' do + assert_not_nil LegitClient.user_by_username('edogawa_test') + end +end