Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
schedules
Commits
adf55a62
Commit
adf55a62
authored
Sep 26, 2018
by
Zach Perkins
Browse files
Fixed instructor model test
parent
f4a25fe6
Changes
1
Hide whitespace changes
Inline
Side-by-side
schedules/test/models/instructor_test.rb
View file @
adf55a62
...
...
@@ -2,6 +2,6 @@ require 'test_helper'
class
InstructorTest
<
ActiveSupport
::
TestCase
test
"Instructor#named filters correctly"
do
assert_equal
instructors
(
:luke
).
id
,
Instructor
.
named
(
"luke"
).
first
.
id
assert_equal
instructors
(
:luke
).
id
,
Instructor
.
from_name
(
Instructor
.
select
(
"*"
),
"luke"
).
first
.
id
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment