Guest User

Untitled

a guest
Nov 6th, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.77 KB | None | 0 0
  1.       it "redirect on update of member" do
  2.         xhr :patch, :update, project_id: project.id, id: me.id, format: :js , project_member: {
  3.           admin: true,
  4.           email: '[email protected]',
  5.           phone: '999-333-3333',
  6.           forms: [],
  7.           credits_attributes: {
  8.             '0' => {
  9.               id: credit.id,
  10.               "start_year(1i)" => "2013",
  11.               "start_year(2i)" => "7",
  12.               "start_year(3i)" => "1",
  13.               "end_year(1i)" => "",
  14.               "end_year(2i)" => "1",
  15.               "end_year(3i)" => "1",
  16.               "_destroy" => "false",
  17.               "credit_role_id" => writer_role.id,
  18.               "seasons" => []
  19.             }
  20.           }
  21.         }
  22.  
  23.         expect(response).not_to render_template(:edit)
Advertisement
Add Comment
Please, Sign In to add comment