Skip to content

Commit

Permalink
Update person_test.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
scotthillson committed Oct 3, 2024
1 parent 12e206e commit 1f3b13e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/models/person_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ class PersonTest < ActiveSupport::TestCase # rubocop:disable Metrics/ClassLength
assert_equal "Dario", Person.new(name: "Dario").name_or_login
end

test "member" do #rubocop:disable Metrics/BlockLength
test "member" do # rubocop:disable Metrics/BlockLength
person = Person.new(first_name: "Dario", last_name: "Frederick")
assert_equal(false, person.member?, "member")
assert_nil(person.member_from, "Member from")
Expand Down Expand Up @@ -1326,7 +1326,8 @@ class PersonTest < ActiveSupport::TestCase # rubocop:disable Metrics/ClassLength

test "blank licenses" do
Person.create!(license: "")
Person.create!(license: "")
person = Person.create!(license: "")
assert person.valid?, "Should be valid"
end

def assert_renew(now, member_from, member_to, expected_member_from, expected_member_to)
Expand Down

0 comments on commit 1f3b13e

Please sign in to comment.