Joost Elfering
b95c43ab7c
resolving issue that was identified via pivotal/jasmine#199 where RegExp objects were not properly compared resulting in non-matching RegExp objects to always return true. a patch to jasmine.Env.equals_ adds an extra step for RexExp objects to be compared.
2012-12-03 15:40:00 -08:00
gvanhove
3685d3199c
less confusing messages for toHaveBeenCalledWith
2012-12-03 15:40:00 -08:00
James Cracknell
ac55e26870
Added toBeNaN matcher
2012-12-03 15:40:00 -08:00
PLOE09
acdc497361
Add JSDoc @return-tag to 'spyOn' and 'expect' functions support
...
code completion in Spket IDE
2012-12-03 15:40:00 -08:00
Alexey Androsov
ae9ddd74a2
update jsdoc for jasmine.Matchers.prototype.toThrow
...
expected argument is optional
2012-12-03 15:40:00 -08:00
Kevin Locke
26f0f6f213
Don't assume exports is defined when window is undefined
...
The current code makes the assumption that if window is undefined it is
being run in an environment which supports the CommonJS Modules spec.
This is not the case when Jasmine is being run in rhino or SpiderMonkey
(smjs) without EnvJS.
The fix is simply to check that exports is an object.
Signed-off-by: Kevin Locke <kevin@kevinlocke.name >
2012-12-03 15:40:00 -08:00
rgould
bbc4c70c91
Add 'ensured' blocks to the queue.
...
This blocks will be run even when a preceeding block sets the abort
flag. This is so that we can support afterEach calls running when the
spec fails due to a timeout.
2012-12-03 15:39:59 -08:00
Dave Burt
5e594946bb
Change toBeCloseTo matcher to be more consistent.
...
It now calculates and compares a difference, rather than rounding
two separate quantities and testing for their equality.
2012-12-03 15:39:59 -08:00
Alex Kwiatkowski
2385acedd8
Add config option which stops jasmine from capturing exceptions in a test
2012-06-23 23:12:31 -04:00
Davis W. Frank
3a0ada034b
Move sources order to Ruby, which is where it's used.
2012-04-01 11:28:57 -07:00
Edward Tsech
551464b8d2
Remove double negative in docs (not.toNotContain, not.toNotEqual)
2012-01-04 16:21:54 +01:00
gvanhove
ac096f9911
convert objectContaining to use jasmineMatches and jasmineToString
2011-11-14 18:29:30 -08:00
gvanhove
67ec0af254
use jasmineMatches for equality testing of complicated matchers
2011-11-14 18:29:30 -08:00
gvanhove
4f2fcff15a
Use jasmineToString for printing out complicated matchers
2011-11-14 18:29:30 -08:00
gvanhove
7158fc2426
Rename hashContaining to objectContaining, since this is javascript. Also call the toString from prettyPrinter
2011-11-14 18:26:48 -08:00
gvanhove
992367dcbc
New matcher "hashContaining" similar to rspec's hash_including
2011-11-14 18:26:48 -08:00
ragaskar
6b5956724b
Version bump to rc4
2011-09-01 07:26:07 -04:00
Davis W. Frank
c0664dd6aa
merge
2011-06-20 08:46:37 -07:00
ragaskar
30431a3958
Gem-ize jasmine
...
[Finishes #13128217 ]
2011-06-17 21:01:42 -04:00
Davis W. Frank
ae24e00c0f
Support for release candidates in the version.json file; propagates up through the version string everywhere: filenames, ZIP, source code
2011-06-15 18:37:12 -07:00
Davis W. Frank
e59171935f
breaking up distribution tasks; moving version to a template to have a simpler concat function
2011-06-14 08:30:14 -07:00
Davis W. Frank
f83cb7f766
Runner.html is now generated (ensures all source & specs get tested); beginnings of refactoring of Rake tasks.
2011-06-09 19:24:51 -07:00
Davis W. Frank
e88d88e427
Move all core files into src/core.
...
Move Browser & Node specs to test against lib/jasmine.js instead of the separate source. Yes, this makes development a little harder but it's better to test that jasmine.js was built correctly.
2011-06-05 21:28:26 -07:00