Project

General

Profile

« Previous | Next » 

Revision c3e9294a

Added by Timo Goebel almost 8 years ago

fixes #15508 - allow duplicate networks

(cherry picked from commit 2bbaa8c058812cfe544f9e668a7f78bd5d44142f)

View differences:

test/unit/subnet_test.rb
class SubnetTest < ActiveSupport::TestCase
should validate_presence_of(:network)
should validate_presence_of(:mask)
should validate_uniqueness_of(:network)
should_not validate_uniqueness_of(:network)
should_not allow_value("asf:fwe6::we6s:q1").for(:network)
should_not allow_value("asf:fwe6::we6s:q1").for(:mask)

Also available in: Unified diff