mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 00:06:04 +01:00
#1448, add specs
This commit is contained in:
parent
e5fe0c6958
commit
91ab795e38
1 changed files with 5 additions and 0 deletions
|
@ -94,6 +94,11 @@ describe "inbox/_entry.html.haml", type: :view do
|
|||
expect(rendered).to have_css(%(.inbox-entry__sharing a.btn[data-inbox-sharing-target="twitter"]))
|
||||
end
|
||||
|
||||
it "has a link-button to copy to clipboard" do
|
||||
expected_attribute_selectors = %([data-controller="clipboard"][data-action="clipboard#copy"][data-inbox-sharing-target="clipboard"])
|
||||
expect(rendered).to have_css(%(.inbox-entry__sharing a.btn#{expected_attribute_selectors}))
|
||||
end
|
||||
|
||||
it "does not have a link-button to share to a custom site" do
|
||||
expect(rendered).not_to have_css(%(.inbox-entry__sharing a.btn[data-inbox-sharing-target="custom"]))
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue