slackersoft
9322af290a
Run specs against separate and concatenated files
...
- also get rid of spec/javascripts, since there's only js here
2014-08-04 13:15:28 -07:00
slackersoft
1ec196e525
refactor response headers normalization into it's own method
2014-07-30 18:46:02 -07:00
slackersoft
f38d9ad97c
Merge branch 'master' of https://github.com/resident-uhlig/jasmine-ajax into resident-uhlig-master
...
Closes #72
2014-07-30 13:37:44 -07:00
slackersoft
8e1b1fc422
Record overridden mime types
...
Fix #74
2014-07-29 18:28:13 -07:00
slackersoft
864c8df82b
Find response case-insensitively
2014-07-29 08:08:03 -07:00
slackersoft
0b2b4a4a2e
Combine request headers with the same name
2014-07-29 07:45:12 -07:00
slackersoft
80af85b4cf
Run jshint against spec files too.
2014-07-28 18:38:06 -07:00
Sven Uhlig
1e84763bd5
added support for multiple headers with same name
2014-07-13 03:14:02 +02: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
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
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
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
Gregg Van Hove
5856e057bf
Don't sort url param values
...
fix #52
2014-04-18 10:52:08 -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
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
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
b5c99709c3
Bump jasmine to 2.0.0rc5
2013-10-31 09:54:47 -07: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
slackersoft
c2a02dbdf6
Rework jasmine ajax to behave more like the jasmine clock and spys
...
- use an instance of MockAjax for nicer tests
- the only global install is `mockAjax`
- mockAjax has a `requests` to track requests that have been made
- mockAjax has a `stubs` to track stubs that have been registered
- use just `install` and `uninstall` to be consistent with clock
2013-10-11 22:16:22 -07:00
slackersoft
7900fc3e18
Update to work the way that jasmine 2.0 expect plugins to work.
2013-10-10 13:27:26 -07:00
JR Boyens
c821f7fbc4
Add Grunt; jshint fixes; more tests
2013-02-19 10:33:40 -08:00
JR Boyens
9b2852195a
Merge with master
2013-02-18 21:18:26 -08:00
JR Boyens
b8ee919ea2
WIP
2013-02-04 19:32:59 -08:00
JR Boyens
f75b12606a
Support capturing HTTP Authentication - fixes #11
2013-01-09 00:05:07 -08:00
JR Boyens
358efd59fd
Support capturing HTTP Authentication - fixes #11
2013-01-09 00:03:52 -08:00
JR Boyens
5da18cc238
Remove specific library support and move to supporting XMLHttpRequest
2013-01-08 23:47:56 -08:00
JR Boyens
b987b61da2
Mock at a higher level; add Zepto tests
2013-01-08 22:40:59 -08:00
JR Boyens
369a72647b
Should be testable with the Jasmine gem
2013-01-08 21:08:38 -08:00
JR Boyens
302aab3696
Removed Prototype.js support
2012-12-19 23:18:22 -08:00
JR Boyens
ae89125d72
Clean JSHint errors
2012-12-19 23:02:23 -08:00
JR Boyens
66e62e61dc
Merge pull request #15 from pivotal-chelsea/fake_data_method
...
return request body params in a consistent and usable way
2012-12-19 22:44:10 -08:00
JR Boyens
7d2fe67852
Upgrade to jQuery 1.8.x
...
Needed to change a test to reflect newer AJAX response code rewriting by
jQuery. Not exactly sure of the history here.
2012-12-19 22:35:24 -08:00
Elliot Foster & Yuri Green
089fea97c1
Decode '+' to spaces, not just '%20'
2012-05-16 12:09:37 -07:00
Elliot Foster & Yuri Green
fa9a44a659
return request body params in a consistent and usable way
2012-05-16 11:40:24 -07:00
Hunter Gillane
ddd5c50e9e
remove stray console.log
2011-09-22 20:17:53 -06:00
Hunter Gillane
26e475dfb2
pull jquery and prototype mocks into named functions
2011-08-07 14:20:37 -06:00
Hunter Gillane
9536fe9d02
allow jasmine.Ajax to be installed/uninstalled instead of globally in spec helper
2011-08-07 14:01:38 -06:00
Hunter Gillane
ba3b1c5b3a
spec for extending FakeXMLHttpRequest
2011-06-07 21:43:20 -06:00