Skip to content

Commit

Permalink
Merge pull request mendicant-original#4 from wicz/factory_girl
Browse files Browse the repository at this point in the history
Factory girl
  • Loading branch information
wicz committed Mar 18, 2012
2 parents 1e4ab28 + 3add9b2 commit c822d3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions test/integration/tasks_test.rb
Original file line number Diff line number Diff line change
@@ -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

Expand Down
1 change: 0 additions & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c822d3d

Please sign in to comment.