Fix bootstrap helper specs

This commit is contained in:
Andreas Nedbal 2023-01-04 17:35:17 +01:00 committed by Andreas Nedbal
parent 58717c0e7f
commit 176a79c0df
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,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-toggle=\"tooltip\" data-placement=\"bottom\">Example Text</span>")
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>")
end
end
@ -94,7 +94,7 @@ describe BootstrapHelper, :type => :helper do
@user = FactoryBot.create(:user)
travel 10.minutes
expect(time_tooltip(@user)).to eq("<span title=\"Sun, 01 Jan 1984 00:00:00 +0000\" data-toggle=\"tooltip\" data-placement=\"bottom\">10 minutes</span>")
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>")
end
end
end