Fix `BootstrapHelper` specs

This commit is contained in:
Andreas Nedbal 2024-03-02 22:39:30 +01:00 committed by Andreas Nedbal
parent 900fc1c646
commit 77d9546b8f
1 changed files with 1 additions and 7 deletions

View File

@ -103,14 +103,8 @@ describe BootstrapHelper, type: :helper do
@user = FactoryBot.create(:user) @user = FactoryBot.create(:user)
travel 10.minutes travel 10.minutes
expect(time_tooltip(@user)).to eq("<span title=\"Sun, 01 Jan 1984 00:00:00 +0000\" data-bs-toggle=\"tooltip\" data-bs-placement=\"bottom\">10 minutes</span>") expect(time_tooltip(@user)).to eq("<span title=\"January 01, 1984 00:00\" data-bs-toggle=\"tooltip\" data-bs-placement=\"bottom\">10m</span>")
end end
end end
end end
describe "#hidespan" do
it "should return the proper markup" do
expect(hidespan("Hidden Text", "d-none")).to eq("<span class=\"d-none\">Hidden Text</span>")
end
end
end end