Sha256: 6bbdd377056ca5bb2f17f3f0eea1951cd11dddea5deaa712cce471f8bb64f404
Contents?: true
Size: 1.86 KB
Versions: 7
Compression:
Stored size: 1.86 KB
Contents
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="../../dist/jquery/jquery-1.4.2.min.js"></script> <script src="../../src/o_O.js"></script> <script src="../../src/modules/o_O.model.js"></script> <script src="../../src/modules/o_O.validations.js"></script> <script src="../../src/drivers/jquery/adapters/o_O.rest.js"></script> <script src="../../src/drivers/jquery/modules/o_O.controller.js"></script> <script src="../../src/drivers/jquery/modules/o_O.support.js"></script> <script src="/tests.js"></script> <script src="run_all.js"></script> <link rel="stylesheet" href="qunit.css" type="text/css" media="screen" /> <script type="text/javascript" src="qunit.js"></script> <script> $(document).ready(function(){ o_O.model.adapter = o_O.rest; module("REST Interface Test (with jQuery) testing Global config"); o_O.config.include_json_root = true o_O('RailsReview', function(){ }); o_O('AlternateRailsReview', function(){ this.json_root_name = 'alternate_object' }); asyncTest('RailsReview.create() storing a basic basic thing with include_root', function(){ RailsReview.create({title: "Awesome"},function(review, response){ equals(review.id, '1', 'should send things with a root'); start(); }); }); asyncTest('specifying a custom json_root_name', function(){ AlternateRailsReview.create({title: "Awesome"},function(review, response){ equals(response, 'ok', 'should send things to /alternate_rails_reviews'); start(); }); }); }); </script> </head> <body> <h1 id="qunit-header">REST Interface Tests (with jQuery)</h1> <h2 id="qunit-banner"></h2> <h2 id="qunit-userAgent"></h2> <ol id="qunit-tests"></ol> </body> </html>
Version data entries
7 entries across 7 versions & 1 rubygems