Commit Graph

212 Commits

Author SHA1 Message Date
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
JR Boyens and Tim Jarratt
337b27f33a Update README with new instructions... dragons 2013-10-18 12:48:26 -07:00
JR Boyens and Tim Jarratt
059d576faa Merge remote-tracking branch 'origin/jasmine_2_0_interface'
Conflicts:
	lib/mock-ajax.js
2013-10-18 12:44:34 -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
e9fb578903 Merge pull request #37 from PacerPRO/master
Update mock-ajax.js
2013-10-08 11:47:37 -07:00
Ken Mayer
4711914056 Update mock-ajax.js
Update copyright date
2013-10-08 10:49:06 -07:00
JR Boyens
7b9130b70c Merge pull request #31 from gberger42/master
Update README to fix header number
2013-08-06 17:19:50 -07:00
Guilherme Berger
b0d77d1929 Update README to fix header number 2013-07-29 17:15:42 -03:00
JR Boyens
f62a1ca98c Merge pull request #30 from joshweinstein/master
Tiny copy fix: removed an arrant single quote from the readme.
2013-05-02 18:02:35 -07:00
joshweinstein
c0a1879011 Remove arrant single quote from readme. 2013-05-02 21:59:38 -03:00
JR Boyens
432b3634b8 Merge pull request #29 from drock/patch-1
Clarify mock request order of operations in README
2013-05-01 09:27:44 -07:00
Derek Gallo
2572435485 Clarify mock request order of operations in README
It wasn't apparent, at least to me, from the README that you specified the test responses AFTER your code started an Ajax request.
2013-05-01 13:25:13 -03:00
JR Boyens
510ebdf476 Fixed broken package.json 2013-03-11 21:12:52 -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
d6b52c4d4b Merge pull request #22 from ragaskar/param_expectation_example
Add README example for testing request parameters.
2013-02-12 23:44:27 -08:00
JR Boyens
297d5eda5a Merge pull request #24 from raindrift/patch-1
Grammar fix leftover from the removal of Prototype
2013-02-12 23:43:59 -08:00
Ian Baker
980f9b48c7 Grammar fix leftover from the removal of Prototype 2013-02-12 22:19:04 -08:00
ragaskar
ac7738a97d Add README example for testing request parameters. 2013-02-07 07:21:46 -08:00
JR Boyens
b8ee919ea2 WIP 2013-02-04 19:32:59 -08:00
JR Boyens
a6447b7ecc Merge pull request #20 from dark-panda/jQuery-2-0-support
jQuery 2.0 renamed onreadystatechange to onload.
2013-02-04 19:32:18 -08:00
J Smith
ede994d75b jQuery 2.0 renamed onreadystatechange to onload. 2013-02-04 12:20:42 -05: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
5e7dedf6d5 Merge branch 'toplevel-mock' into 2_0 2013-01-08 23:49:05 -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
044d02c547 Merge pull request #18 from pivotal-blueprint/patch-1
Update README.markdown
2013-01-08 21:09:34 -08:00
JR Boyens
369a72647b Should be testable with the Jasmine gem 2013-01-08 21:08:38 -08:00
pivotal-blueprint
ed04391d57 Update README.markdown 2012-12-20 11:28:31 -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
29b70f41e7 Merge pull request #10 from Shroder/patch-1
Adding missing closed bracket to TestResponses under step 1.
2012-12-19 22:47:22 -08:00
JR Boyens
fdf4b8044d Merge pull request #13 from jareware/patch-1
Remove the single remaining dependency on the global $
2012-12-19 22:46:39 -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
d99d52b582 Merge pull request #16 from pivotal-medici/jshint_fixes
Fix jshint errors
2012-12-19 22:41:52 -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
JR Boyens
3040e9f1d1 Upgrade to jasmine-core 1.3.1, jasmine-gem locked to 1.2 series 2012-12-19 21:56:14 -08:00
Alex Kwiatkowski & Will Bagby
988797888f Fix jshint errors 2012-06-12 16:06:21 -04:00