mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 08:29:53 +01:00
Adjust BootstrapHelper specs
This commit is contained in:
parent
04931b627c
commit
444acaf548
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue