Revision abd8f1d1
Added by Daniel Lobato Garcia over 9 years ago
test/functional/api/v1/subnets_controller_test.rb | ||
---|---|---|
require 'test_helper'
|
||
|
||
class Api::V1::SubnetsControllerTest < ActionController::TestCase
|
||
|
||
valid_attrs = { :name => 'QA2', :network => '10.35.2.27', :mask => '255.255.255.0' }
|
||
|
||
def test_index
|
||
... | ... | |
assert subnets.is_a?(Array)
|
||
assert_response :success
|
||
assert !subnets.empty?
|
||
|
||
end
|
||
|
||
test "should show individual record" do
|
Also available in: Unified diff
Refs #3809 - Remove cops for empty lines