Skip to content

Commit

Permalink
bumped to version 0.9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
danielspaniel committed Jan 14, 2015
1 parent 7d6414d commit 2632b6b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-data-factory-guy",
"version": "0.9.3",
"version": "0.9.4",
"authors": [
"Daniel Sudol <[email protected]>",
"Opak Alex <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-data-factory-guy",
"version": "0.9.3",
"version": "0.9.4",
"authors": [
"Daniel Sudol <[email protected]>",
"Opak Alex <[email protected]>"
Expand Down
7 changes: 4 additions & 3 deletions vendor/assets/javascripts/ember_data_factory_guy.js
Original file line number Diff line number Diff line change
Expand Up @@ -1271,10 +1271,12 @@ if (FactoryGuy !== undefined) {
return null;
}
}

// Inspect the data submitted in the request (either POST body or GET query string)
if ( handler.data ) {
if ( ! requestSettings.data || !isMockDataEqual(handler.data, requestSettings.data) ) {
// console.log('request.data', requestSettings.data )
// console.log('handler.data', handler.data )
// console.log('data equal', isMockDataEqual(handler.data, requestSettings.data) )
if ( ! requestSettings.data || !isMockDataEqual(handler.data, requestSettings.data) ) {
// They're not identical, do not mock this request
return null;
}
Expand All @@ -1285,7 +1287,6 @@ if (FactoryGuy !== undefined) {
// The request type doesn't match (GET vs. POST)
return null;
}

return handler;
}

Expand Down

0 comments on commit 2632b6b

Please sign in to comment.