mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-12 12:03:37 +01:00
15 lines
392 B
Ruby
15 lines
392 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "rails_helper"
|
|
|
|
describe "inbox/_push_settings.haml", type: :view do
|
|
subject(:rendered) { render }
|
|
|
|
it "has a button to enable push notifications" do
|
|
expect(rendered).to match(/<button.+data-action='push-enable'>/)
|
|
end
|
|
|
|
it "has a button to dismiss the view" do
|
|
expect(rendered).to match(/<button.+data-action='push-dismiss'>/)
|
|
end
|
|
end
|