mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +02:00
18 lines
425 B
Ruby
18 lines
425 B
Ruby
|
require "test_helper"
|
||
|
|
||
|
class IssuesControllerTest < ActionDispatch::IntegrationTest
|
||
|
setup do
|
||
|
sign_in users(:family_admin)
|
||
|
end
|
||
|
|
||
|
test "should get show polymorphically" do
|
||
|
issues.each do |issue|
|
||
|
get issue_url(issue)
|
||
|
assert_response :success
|
||
|
assert_dom "h2", text: issue.title
|
||
|
assert_dom "h3", text: "Issue Description"
|
||
|
assert_dom "h3", text: "How to fix this issue"
|
||
|
end
|
||
|
end
|
||
|
end
|