Sven Uhlig
603c089423
added platform x64-mingw32
2014-07-13 03:05:49 +02:00
Sven Uhlig
ce30728c98
changes in order to satisfy jshint
...
[L120:C18] Wrap the /regexp/ literal in parens to disambiguate the slash operator.
return /^application\/json/.test(xhr.contentType());
[L307:C27] Expected '===' and instead saw '=='.
if (requests.length == 0) return [];
[L307:C33] Expected '{' and instead saw 'return'.
if (requests.length == 0) return [];
[L318:C31] Expected '===' and instead saw '=='.
if (requests[i].url == url_to_match) {
2014-07-13 00:53:18 +02:00
slackersoft
f95a009ffe
Merge branch 'kmontag-prevent-multiple-responses'
2014-07-11 12:59:49 -07:00
Kevin Montag
9908439d81
Throw an error if response() is called more than once on requests
...
Closes #71 Fixes #70
2014-07-11 12:58:34 -07:00
slackersoft
199324e720
Allow stubs to match only a particular http method (GET, POST, PUT, etc.)
...
Fixes #36
2014-07-10 12:44:56 -07:00
slackersoft
b6a0020b84
bump to 2.0.1 so we can publish to npm
2014-07-07 09:13:21 -07:00
Gregg Van Hove
4f54ae57a3
Merge pull request #69 from lencioni/ignore
...
Add some files to the bower.json ignore list
2014-06-27 12:38:47 -07:00
Joe Lencioni
11432fe36f
Add some files to the bower.json ignore list
...
When installing this package with Bower, a bunch of extra files come
along for the ride that aren't needed. This commit adds them to the
ignore list so they will not be install by consumers using Bower.
While I was at it, I sorted the list.
2014-06-27 10:31:51 -07:00
Danny Guinther
63bd205cfa
Fix broken PhantomJS tests
2014-06-13 10:12:47 -04:00
Danny Guinther
898e0ed6e9
Better support XHR2 response
...
Conflicts:
spec/javascripts/mock-ajax-toplevel-spec.js
2014-06-12 20:22:11 -07:00
Albert Wang
d49bb240ac
Added XHR2's response and responseType
2014-06-12 20:21:30 -07:00
Albert Wang
f480e105c2
Renamed response function to makeResponse so that it doesn't conflict with the builtin method
2014-06-12 20:09:03 -07:00
slackersoft
54864a45d3
Allow extra qualifications when matching json content-type
2014-06-12 13:33:48 -07:00
slackersoft
d893394765
Add the ability to add custom parameter parsers at runtime
2014-06-12 13:29:33 -07:00
slackersoft
080bbde2b1
Allow to parse request params as JSON
...
fixes #51
2014-06-11 08:13:26 -07:00
slackersoft
477f044b4a
The HTTP spec says it's 'Content-Type'
...
Fixes #67
2014-06-10 13:33:32 -07:00
slackersoft
1f74c2fc96
Merge branch 'linssen-regex-matchers'
2014-06-10 13:10:55 -07:00
Wil Linssen
49d953c954
Allow stubs to use Regex
2014-06-10 13:10:16 -07:00
Sheel Choksi
85be9be887
Fixes for IE 8 and IE 9
...
- Object.keys isn't available in IE 8, so using a local objectKeys helper method
that accomplishes the same effect for spec
- The DONE property isn't supported in IE 8, so falling back to the
numerical 4 in spec when necessary
- Extending from an XMLHttpRequest can't extend properties that are
filled in asynchronously (status, responseText, etc.) on IE 8 and IE 9
so we now skip these properties when extending
2014-06-01 15:40:19 -07:00
Sheel Choksi
d103af2646
Merge pull request #64 from maxcal/master
...
Fix code example in readme.
2014-06-01 11:53:37 -07:00
Max Calabrese
8d4161407f
Fix code example in readme.
2014-06-01 19:57:05 +02:00
Sheel Choksi
ee8c00680b
Merge pull request #63 from quainjn/patch-1
...
Another Readme update for Jasmine-Ajax 2.0
2014-05-30 20:30:11 -07:00
Jake Quain
955152d6be
Another Readme update for Jasmine-Ajax 2.0
2014-05-30 17:31:02 -04:00
slackersoft
4115a04727
now with the proper script name [ #69742564 ]
2014-05-01 13:32:54 -07:00
slackersoft
b40f9995a2
Use sauce labs to run specs in the same browsers we test jasmine in.
...
- Don't want any weird browser bugs to sneak in
[finish #69742564 ]
2014-05-01 13:26:37 -07:00
JR Boyens
1e0a56a632
Add bower config
2014-04-21 17:29:01 -07:00
Gregg Van Hove
5856e057bf
Don't sort url param values
...
fix #52
2014-04-18 10:52:08 -07:00
Gregg Van Hove
56977b188c
Merge pull request #50 from peet/fixPrototype
...
fix the prototype chain of the FakeXMLHttpRequest object
2014-04-18 10:50:20 -07:00
Gregg Van Hove
2c3aee7138
Merge pull request #48 from sidraval/master
...
Update README to use Jasmine 2.0 syntax, and Jasmine-Ajax 2.0 syntax
2014-04-17 11:34:48 -07:00
Peet Goddard
7acac4b69f
fix the prototype chain of the FakeXMLHttpRequest object
...
the prototype of the FakeXMLHttpRequest object will now be an XMLHttpRequest object, including properties such as 'withCredentials', not the XMLHttpRequest constructor function
2014-04-04 15:29:49 +01:00
Sid Raval
138c00b336
Update README to match syntax from Jasmine 2.0 and Jasmine-Ajax 2.0
2014-03-16 12:46:20 -04:00
Sid Raval
de3de0c2b5
Update README to match syntax from Jasmine 2.0 and Jasmine-Ajax 2.0
2014-03-15 14:33:17 -04:00
slackersoft
7bf2ab6a99
Update package.json with more info
...
- Fixes #34
2014-01-25 16:04:49 -08:00
slackersoft
5ccd4827ee
allow query string for stubbed requests to be in any order
2014-01-21 17:06:23 -10:00
slackersoft
a19e5b1bcd
match form data in any order
2014-01-17 15:50:49 -08:00
slackersoft
75d0747e70
rudementary matching against the form data being submitted for a request stub
2014-01-17 15:50:48 -08:00
slackersoft
3ebf994356
trigger onreadystatechange everywhere we set readyState
...
- Partially addresses #19
2014-01-17 15:50:48 -08:00
Sheel Choksi
ca0acd7109
Update README
2014-01-09 20:35:05 -08:00
Robert Clark
acbb393316
Update Readme to include mention of jasmine 2 ajax documentation.
...
While attempting to use this gem, I ran into a bunch of issues due to the readme being out of date. I know the updated version is still a work in progress however I propose adding a link to the documentation on the jasmine github since it was quite useful to me.
2013-12-23 17:12:31 -05:00
JR Boyens
9758c0e25d
Merge pull request #43 from pivotal-pan/master
...
Create requestHeaders object in FakeXMLHttpRequest constructor
2013-12-02 20:41:00 -08:00
Don McCaughey and Greg Cobb
c788f13224
Create requestHeaders object in FakeXMLHttpRequest constructor instead of on the prototype
2013-12-02 17:51:21 -08:00
JR Boyens
b0d4d0d573
[ Fixes #32 ] add statusText to the response
2013-11-01 15:51:21 -07:00
JR Boyens
e3639a5a7c
[ Fixes #38 ][ Fixes #35 ] Add filtering to the requests tracker
2013-11-01 15:05:30 -07:00
pivotal
14ca64b77a
[ Fixes #39 ] Uninstall should clear requests / stubs
2013-11-01 14:41:35 -07:00
JR and Sheel Choksi
546549cb5f
Merge pull request #41
2013-11-01 12:09:55 -07:00
Sheel Choksi
991f078730
Add Travis build badge to Readme
2013-10-31 09:58:45 -07:00
Sheel Choksi
b5c99709c3
Bump jasmine to 2.0.0rc5
2013-10-31 09:54:47 -07:00
August Toman-Yih and Sheel Choksi
08d3e3ffc8
Add in default rake task to be jasmine:ci
2013-10-30 14:46:42 -07:00
Pavel Lishin
e8619f762b
Set status to 0 and statusText to "abort" when FakeXMLHttpRequest.abort is called
2013-10-29 17:06:43 -04:00
Gregg Van Hove and JR Boyens
12e394353a
Add at() to access specific request index; actually construct MockAjax
2013-10-18 13:05:47 -07:00