Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added test to issue #560 #561

Closed
wants to merge 3 commits into from
Closed

Added test to issue #560 #561

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Nov 19, 2013

var Person = can.Model("Person",{
update : function(id, attrs, success, error){
return can.ajax({
url : "/people/"+id,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change this to not use fixture: function() ... this has been deprecated for a long time. Instead, do:

can.fixture("POST /people/{id}",function(){
  return  {createdAt: "now"}
})

Thanks!

@ccummings
Copy link
Contributor

#560 is fixed and an accompanying test was included in the fix. Closing

@ccummings ccummings closed this Apr 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants