diff --git a/test/integration/tasks_test.rb b/test/integration/tasks_test.rb index f575174..ea92a9e 100644 --- a/test/integration/tasks_test.rb +++ b/test/integration/tasks_test.rb @@ -1,6 +1,9 @@ require "test_helper" class TasksTest < ActionDispatch::IntegrationTest + + setup { Factory(:instructor) } + test "an instructor can create a new course task" do sign_in_as_instructor diff --git a/test/test_helper.rb b/test/test_helper.rb index 60d017f..ac79c6d 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -15,7 +15,6 @@ class ActiveSupport::TestCase class ActionDispatch::IntegrationTest include Capybara::DSL - setup { Factory(:instructor) } teardown { Capybara.reset_sessions! } def sign_in_as_instructor