Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pooza committed May 23, 2024
1 parent e9d0e54 commit 78a3210
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
GIT
remote: https://github.com/pooza/ginseng-core.git
revision: c2cf88f27f223584d233d2fada62c08f63d32843
revision: f480c0d282ccd5a941b4dae7bc9625bde58c1e18
specs:
ginseng-core (1.14.3)
ginseng-core (1.14.4)
activesupport (>= 7.0.7.1)
addressable (>= 2.8.0)
bundler (~> 2.0)
Expand Down Expand Up @@ -36,9 +36,9 @@ GIT

GIT
remote: https://github.com/pooza/ginseng-fediverse.git
revision: a0156dec9d765e07d536fadeb8defd4aeba1ec13
revision: 13cf153752407c2c262b097d240599a5755a62e4
specs:
ginseng-fediverse (1.8.14)
ginseng-fediverse (1.8.15)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -114,7 +114,7 @@ GEM
mime-types-data (3.2024.0507)
mini_mime (1.1.5)
mini_portile2 (2.8.6)
minitest (5.23.0)
minitest (5.23.1)
multi_json (1.15.0)
multi_xml (0.7.1)
bigdecimal (~> 3.1)
Expand Down Expand Up @@ -144,7 +144,7 @@ GEM
power_assert (2.0.3)
public_suffix (5.0.5)
raabro (1.4.0)
racc (1.7.3)
racc (1.8.0)
rainbow (3.1.1)
rake (13.2.1)
regexp_parser (2.9.2)
Expand Down
6 changes: 6 additions & 0 deletions test/icalencar_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ def test_negative_keyword
end
end

def test_create_entry
source = %{<a href="https://shonenjumpplus.com/episode/17106371859967525169">https://shonenjumpplus.com/episode/17106371859967525169</a><br>感想には是非、以下のタグをどうぞ!<br>#勇者アバン_42話<br>#勇者アバン_11巻 (11巻2話目にあたります)<br><br>#delmulin #更新}
sanitized = %{https://shonenjumpplus.com/episode/17106371859967525169\n感想には是非、以下のタグをどうぞ!\n#勇者アバン_42話\n#勇者アバン_11巻 (11巻2話目にあたります)\n\n#delmulin #更新}
assert_equal(sanitized, source.sanitize)
end

def test_entries
IcalendarSource.all do |source|
assert_kind_of(Enumerator, source.entries)
Expand Down

0 comments on commit 78a3210

Please sign in to comment.