Sha256: 01bc5d8c82179d4ef3c658c1278762e93223fa1dc2dc5e9d505eafdcf214691f

Contents?: true

Size: 1.19 KB

Versions: 23

Compression:

Stored size: 1.19 KB

Contents

var proxy, contracts;
proxy = require('flexible_proxy_client');
debugger;
contracts = [];
for (i=0; i< 100; i=i+1) {
    contracts.push({
        "created_at": "2014-10-21T09:30:45.217Z",
        "customer_company_id": "1",
        "customer_contact_id": "1",
        "daily_rate_currency": "GBP",
        "daily_rate_pennies": 10000,
        "duration": 2678400,
        "end_date": "2013-01-31T00:00:00.000Z",
        "fq_name": "My First Contract",
        "id": "544627c51fedb0383c0000" + i,
        "name": "My Contract No " + (i + 1),
        "owner_company_id": "1",
        "owner_id": "544627c51fedb0383c000092",
        "start_date": "2013-01-01T00:00:00.000Z",
        "status": "accepted",
        "supplier_company_id": "1",
        "updated_at": "2014-10-21T09:30:45.217Z",
        "value_currency": "GBP",
        "value_pennies": 100000,
        "notes": [

        ]
    });
}
proxy.define([
    proxy.stub('http://localhost:9000/api/v1/contracts.json').andReturn({json: {
        "contracts": contracts,
        "total": contracts.length,
        "success": true
    }}),
    proxy.stub('http://localhost:35729/livereload.js').andReturn({
        json: {}
    })
], function () {console.log("YEP")});

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
agile-proxy-0.1.26 load_proxy.js
agile-proxy-jruby-0.1.26-jruby load_proxy.js
agile-proxy-jruby-0.1.25-jruby load_proxy.js
agile-proxy-0.1.25 load_proxy.js
agile-proxy-0.1.24 load_proxy.js
agile-proxy-0.1.23 load_proxy.js
agile-proxy-0.1.22 load_proxy.js
agile-proxy-0.1.21 load_proxy.js
agile-proxy-0.1.20 load_proxy.js
agile-proxy-0.1.19 load_proxy.js
agile-proxy-0.1.18 load_proxy.js
agile-proxy-0.1.13 load_proxy.js
agile-proxy-0.1.12 load_proxy.js
agile-proxy-0.1.11 load_proxy.js
agile-proxy-0.1.10 load_proxy.js
agile-proxy-0.1.9 load_proxy.js
agile-proxy-0.1.8 load_proxy.js
agile-proxy-0.1.7 load_proxy.js
agile-proxy-0.1.6 load_proxy.js
agile-proxy-0.1.5 load_proxy.js