-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from publify/fix-rubocop-capybara-offenses
Fix new rubocop-capybara offenses
- Loading branch information
Showing
3 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
describe "display_profile_item" do | ||
it "displays the item as a list item if show_item is true" do | ||
item = display_profile_item("[email protected]", "Jabber:") | ||
expect(item).to have_selector("li", text: "Jabber: [email protected]") | ||
expect(item).to have_css("li", text: "Jabber: [email protected]") | ||
end | ||
|
||
it "does not display the item empty" do | ||
|
@@ -16,7 +16,7 @@ | |
|
||
it "displays a link if the item is an url" do | ||
item = display_profile_item("http://twitter.com/mytwitter", "Twitter:") | ||
expect(item).to have_selector("li") do | ||
expect(item).to have_css("li") do | ||
have_link("http://twitter.com/mytwitter") | ||
end | ||
end | ||
|