Commit baf8caf8 authored by Zac Wood's avatar Zac Wood

Fixed controller tests

parent 078aac5d
......@@ -2,7 +2,7 @@ require 'test_helper'
class CoursesControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get url_for :controller => 'courses', :action => 'index'
get url_for controller: 'courses', action: 'index'
assert_response :success
end
......
require 'test_helper'
class SectionsControllerTest < ActionDispatch::IntegrationTest
# TODO: Fix SectionsController tests
# test "should get index" do
# get url_for action: 'index', controller: 'sections'
# assert_response :success
# end
#
# test "should get show" do
# get url_for controller: 'sections', action: 'show', id: '1'
# assert_response :success
# end
test "should get index" do
get url_for controller: 'sections', action: 'index', course_id: 1
# get 'api/'
assert_response :success
end
end
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
id: 1
subject: MyString
course_number: MyString
semester: one
......
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
id: 1
name: MyString
crn: MyString
section_type: MyString
......
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
id: 1
season: MyString
year: MyString
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment