Project

General

Profile

« Previous | Next » 

Revision 05848084

Added by Timo Goebel about 8 years ago

fixes #14638 - Refactor Subnet into STI to allow different subnet types

View differences:

test/unit/helpers/application_helper_test.rb
def test_generate_link_for
proxy = FactoryGirl.create(:dhcp_smart_proxy)
subnet = FactoryGirl.create(:subnet, :name => 'My subnet')
subnet = FactoryGirl.create(:subnet_ipv4, :name => 'My subnet')
proxy.subnets = [subnet]
links = generate_links_for(proxy.subnets)
assert_equal(link_to(subnet.to_label, subnets_path(:search => "name = \"#{subnet.name}\"")), links)

Also available in: Unified diff