Skip to content

Commit

Permalink
relaxing bytes of file check
Browse files Browse the repository at this point in the history
  • Loading branch information
evantahler committed Apr 9, 2012
1 parent cb795b1 commit c9a3322
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/action_file.js
Expand Up @@ -41,7 +41,10 @@ suite.addBatch({
"file: binary files should work": {
topic: function(){ specHelper.apiTest.get(actionUrl + "/logo/actionHero.png", 0, {} ,this.callback ); },
statusCode: function(res, b){ specHelper.assert.equal(res.statusCode, 200);},
content: function(res, b){ specHelper.assert.equal(res.body.length, 19571);}, // bytes of file
content: function(res, b){
specHelper.assert.equal(res.body.length >= 19571, true);
specHelper.assert.equal(res.body.length < 20000, true);
}, // bytes of file
},
});

Expand Down

0 comments on commit c9a3322

Please sign in to comment.