it "notifies after movie is updated" do
            # allow(Ca).to receive(:id).and_return(4)
            ca1 = FactoryGirl.create(:ca)
              put :update, :id => ca1.id, :ca => {:name => "NewName", :email => "new@email.com"}
            expect(flash[:notice]).to eq("Ca was successfully updated.")