-
-
Save dsisnero/21f995d87b00a9992a0275e494413bda to your computer and use it in GitHub Desktop.
Revisions
-
dogweather revised this gist
Oct 11, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # How to use the above helpers. RSpec.describe 'Test some page', type: :request do it 'has a <p> with "Title"' do get '/my-page' -
dogweather created this gist
Oct 10, 2023 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ def css(selector) html.css(selector).text end def html Nokogiri::HTML(response.body) end This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ # How to use the above helpers. Spec.describe 'Test some page', type: :request do it 'has a <p> with "Title"' do get '/my-page' expect( css 'p' ).to include 'Title' end end