Add api/v1/parks
This commit is contained in:
8
test/controllers/api/v1/parks_controller_test.rb
Normal file
8
test/controllers/api/v1/parks_controller_test.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
require "test_helper"
|
||||
|
||||
class Api::V1::ParksControllerTest < ActionDispatch::IntegrationTest
|
||||
test "should get index" do
|
||||
get api_v1_parks_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
4
test/fixtures/parks.yml
vendored
4
test/fixtures/parks.yml
vendored
@@ -4,10 +4,10 @@ one:
|
||||
code: crla
|
||||
name: Crater Lake National Park
|
||||
states: OR
|
||||
properties:
|
||||
properties: {}
|
||||
|
||||
two:
|
||||
code: olym
|
||||
name: Olympic National Park
|
||||
states: WA
|
||||
properties:
|
||||
properties: {}
|
||||
|
||||
Reference in New Issue
Block a user