Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
waymondo committed Jan 10, 2024
1 parent acfaf1b commit f70a512
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .streerc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--print-width=100
6 changes: 4 additions & 2 deletions test/test_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -593,15 +593,17 @@ def create_comments_and_destroy_post
end

test "has_hoardable_rich_text works" do
profile = Profile.create!(user: user, email: "[email protected]", life_story: "<div>woke up</div>")
profile =
Profile.create!(user: user, email: "[email protected]", life_story: "<div>woke up</div>")
datetime = DateTime.now
profile.update!(life_story: "<div>went to sleep</div>")
assert_equal "woke up", profile.at(datetime).life_story.to_plain_text
end

if SUPPORTS_ENCRYPTED_ACTION_TEXT
test "has_hoardable_rich_text works for encrypted rich text" do
profile = Profile.create!(user: user, email: "[email protected]", diary: "<div>i'm happy</div>")
profile =
Profile.create!(user: user, email: "[email protected]", diary: "<div>i'm happy</div>")
datetime = DateTime.now
profile.update!(diary: "<div>i'm sad</div>")
assert_equal "i'm happy", profile.at(datetime).diary.to_plain_text
Expand Down

0 comments on commit f70a512

Please sign in to comment.