Skip to content

Commit 3b63aa4

Browse files
Uriel AlonsoUriel Alonso
authored andcommitted
Make test spec-driven
1 parent a422a33 commit 3b63aa4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/controllers/pages_controller_test.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ class PagesControllerTest < ActionDispatch::IntegrationTest
44
test "home page loads" do
55
get root_url
66
assert_response :success
7-
assert_match "spec-driven Rails app", response.body
7+
8+
data = YAML.load_file(Rails.root.join("config/specs/business.yml"))
9+
10+
assert_match data.dig("site", "headline"), @response.body
811
end
912
end

0 commit comments

Comments
 (0)