Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it "redirect on update of member" do
- xhr :patch, :update, project_id: project.id, id: me.id, format: :js , project_member: {
- admin: true,
- email: '[email protected]',
- phone: '999-333-3333',
- forms: [],
- credits_attributes: {
- '0' => {
- id: credit.id,
- "start_year(1i)" => "2013",
- "start_year(2i)" => "7",
- "start_year(3i)" => "1",
- "end_year(1i)" => "",
- "end_year(2i)" => "1",
- "end_year(3i)" => "1",
- "_destroy" => "false",
- "credit_role_id" => writer_role.id,
- "seasons" => []
- }
- }
- }
- expect(response).not_to render_template(:edit)
Advertisement
Add Comment
Please, Sign In to add comment