Skip to content
Browse files

Merge pull request #4 from wicz/factory_girl

Factory girl
  • Loading branch information...
2 parents 1e4ab28 + 3add9b2 commit c822d3db99bca582261e31b3e1720b12f3651df8 @wicz wicz committed Mar 18, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −0 test/integration/tasks_test.rb
  2. +0 −1 test/test_helper.rb
View
3 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
View
1 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

0 comments on commit c822d3d

Please sign in to comment.
Something went wrong with that request. Please try again.