From 3add9b2bc5668e589e1b920d082fa5cd1549ac69 Mon Sep 17 00:00:00 2001 From: Chris Geihsler Date: Sun, 18 Mar 2012 15:51:17 -0400 Subject: [PATCH] moving the course creation out of the base class --- test/integration/tasks_test.rb | 3 +++ test/test_helper.rb | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) 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