Skip to content

Commit

Permalink
Simplify test from regex to simple includes assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Nov 24, 2023
1 parent 919653d commit b3bc787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/templates/test_fedora.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_exclude_extension_directory
end

def test_build_requires
assert_match(/^# BuildRequires: rubygem\(test_development\) >= 1\.0\.0$/, @out_string)
assert_includes(@out_string, "\n# BuildRequires: rubygem(test_development) >= 1.0.0\n")
end

def test_rubygems_is_not_required
Expand Down

0 comments on commit b3bc787

Please sign in to comment.