test: fix broken tests.

This commit is contained in:
evazion
2020-04-21 00:23:38 -05:00
parent 4041ff6f7e
commit 4abff072b7
6 changed files with 12 additions and 29 deletions

View File

@@ -17,7 +17,7 @@ class IpBanTest < ActiveSupport::TestCase
end
context "validation" do
setup { create(:ip_ban: ip_addr: "5.6.7.8") }
setup { create(:ip_ban, ip_addr: "5.6.7.8") }
subject { build(:ip_ban) }
should allow_value("1.2.3.4").for(:ip_addr)