mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 10:29:53 +01:00
Fix bootstrap helper specs
This commit is contained in:
parent
58717c0e7f
commit
176a79c0df
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue