Skip to content

Commit 7cd1b96

Browse files
committed
Refactor spec without using nokogiri
1 parent 44f12db commit 7cd1b96

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

spec/requests/organization_requests_spec.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@
5555

5656
get organization_path
5757

58-
html = Nokogiri::HTML(response.body)
59-
expect(html.text).to include("Intake Center")
60-
expect(html.text).to include("Default Center")
58+
expect(response.body).to include("Intake Center")
59+
expect(response.body).to include("Default Center")
6160
end
6261

6362
context "when enable_packs flipper is on" do

0 commit comments

Comments
 (0)