Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/controllers/people_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class PeopleControllerTest < ActionController::TestCase

test "should create person" do
assert_difference('Person.count') do
post :create, person: { first_name: @person.first_name, last_name: @person.last_name }
post :create, person: { first_name: "New", last_name: "Intown" }
end

assert_redirected_to person_path(assigns(:person))
Expand All @@ -35,7 +35,7 @@ class PeopleControllerTest < ActionController::TestCase
end

test "should update person" do
patch :update, id: @person, person: { first_name: @person.first_name, last_name: @person.last_name }
patch :update, id: @person, person: { first_name: "New first name", last_name: "New last name" }
assert_redirected_to person_path(assigns(:person))
end

Expand Down
3 changes: 0 additions & 3 deletions test/fixtures/people.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@ one:
first_name: MyString
last_name: MyString

two:
first_name: MyString
last_name: MyString