instructor_test.rb 229 Bytes
Newer Older
Zac Wood's avatar
Zac Wood committed
1
2
3
require 'test_helper'

class InstructorTest < ActiveSupport::TestCase
4
  test "Instructor#named filters correctly" do
Zach Perkins's avatar
Zach Perkins committed
5
    assert_equal instructors(:luke).id, Instructor.from_name(Instructor.select("*"), "luke").first.id
6
  end
Zac Wood's avatar
Zac Wood committed
7
end