mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 12:19:52 +01:00
add view specs for inbox/_push_settings
This commit is contained in:
parent
61713dda6b
commit
63481de48f
1 changed files with 15 additions and 0 deletions
15
spec/views/inbox/_push_settings.haml_spec.rb
Normal file
15
spec/views/inbox/_push_settings.haml_spec.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
# 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
|
Loading…
Reference in a new issue