diff --git a/test/controllers/people_controller_test.rb b/test/controllers/people_controller_test.rb index 8e16af5..f01f629 100644 --- a/test/controllers/people_controller_test.rb +++ b/test/controllers/people_controller_test.rb @@ -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)) @@ -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 diff --git a/test/fixtures/people.yml b/test/fixtures/people.yml index afdaa6a..324273c 100644 --- a/test/fixtures/people.yml +++ b/test/fixtures/people.yml @@ -4,6 +4,3 @@ one: first_name: MyString last_name: MyString -two: - first_name: MyString - last_name: MyString