Skip to content

Commit

Permalink
test house-of-councillor: add a test for invalid type (#212)
Browse files Browse the repository at this point in the history
Because verify "literal string will be frozen in the future" warning.
  • Loading branch information
tikkss authored Sep 4, 2024
1 parent f1c671e commit 004d29c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test-house-of-councillor.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
class HouseOfCouncillorTest < Test::Unit::TestCase
test("invalid") do
message = ":type must be one of [:bill, :in_house_group, :member, :question]: :invalid"
assert_raise(ArgumentError.new(message)) do
Datasets::HouseOfCouncillor.new(type: :invalid)
end
end

sub_test_case(":bill") do
def setup
@dataset = Datasets::HouseOfCouncillor.new
Expand Down

0 comments on commit 004d29c

Please sign in to comment.