Adjust BootstrapHelper specs

This commit is contained in:
Andreas Nedbal 2024-03-10 15:30:27 +01:00 committed by Andreas Nedbal
parent 04931b627c
commit 444acaf548

View file

@ -93,7 +93,7 @@ describe BootstrapHelper, type: :helper do
describe "#tooltip" do
it "should return the proper markup" do
expect(tooltip("Example Text", "This is in a tooltip")).to eq("<span title=\"This is in a tooltip\" data-bs-toggle=\"tooltip\" data-bs-placement=\"bottom\">Example Text</span>")
expect(tooltip("Example Text", "This is in a tooltip")).to eq("<span title=\"This is in a tooltip\" data-controller=\"tooltip\" data-bs-placement=\"bottom\">Example Text</span>")
end
end
@ -103,7 +103,7 @@ describe BootstrapHelper, type: :helper do
@user = FactoryBot.create(:user)
travel 10.minutes
expect(time_tooltip(@user)).to eq("<span title=\"January 01, 1984 00:00\" data-bs-toggle=\"tooltip\" data-bs-placement=\"bottom\">10m</span>")
expect(time_tooltip(@user)).to eq("<span title=\"January 01, 1984 00:00\" data-controller=\"tooltip\" data-bs-placement=\"bottom\">10m</span>")
end
end
end