Compare commits

...

2 Commits

Author SHA1 Message Date
ragaskar
fbbccf6ef7 Bump to 1.2.0.rc3 2012-04-04 09:48:00 -07:00
ragaskar
7ad75c13d4 Fix Matchers.any specs in Firefox
- Firefox adds whitespace to the resulting to_string function, necessary
  to remove it for the match to occur correctly.
2012-04-04 08:41:59 -07:00
6 changed files with 12 additions and 12 deletions

View File

@@ -2525,6 +2525,6 @@ jasmine.version_= {
"major": 1,
"minor": 2,
"build": 0,
"revision": 1333492179,
"release_candidate": 2
"revision": 1333557965,
"release_candidate": 3
};

View File

@@ -1,6 +1,6 @@
module Jasmine
module Core
VERSION = "1.2.0.rc2"
VERSION = "1.2.0.rc3"
end
end

2
pages

Submodule pages updated: 152d8c760d...43dbf36103

View File

@@ -947,28 +947,28 @@ describe("jasmine.Matchers", function() {
describe("with Object", function () {
it("says it's looking for an object", function () {
any = jasmine.any(Object);
expect(any.jasmineToString()).toMatch(/<jasmine\.any\(function Object.*\)>/);
expect(any.jasmineToString().replace(/\n/g, "")).toMatch(/<jasmine\.any\(function Object.*\)>/);
});
});
describe("with Function", function () {
it("says it's looking for a function", function () {
any = jasmine.any(Function);
expect(any.jasmineToString()).toMatch(/<jasmine\.any\(function Function.*\)>/);
expect(any.jasmineToString().replace(/\n/g, "")).toMatch(/<jasmine\.any\(function Function.*\)>/);
});
});
describe("with String", function () {
it("says it's looking for a string", function () {
any = jasmine.any(String);
expect(any.jasmineToString()).toMatch(/<jasmine\.any\(function String.*\)>/);
expect(any.jasmineToString().replace(/\n/g, "")).toMatch(/<jasmine\.any\(function String.*\)>/);
});
});
describe("with Number", function () {
it("says it's looking for a number", function () {
any = jasmine.any(Number);
expect(any.jasmineToString()).toMatch(/<jasmine\.any\(function Number.*\)>/);
expect(any.jasmineToString().replace(/\n/g, "")).toMatch(/<jasmine\.any\(function Number.*\)>/);
});
});
@@ -976,7 +976,7 @@ describe("jasmine.Matchers", function() {
it("says it's looking for an object", function () {
function MyClass () {}
any = jasmine.any(MyClass);
expect(any.jasmineToString()).toMatch(/<jasmine\.any\(function MyClass.*\)>/);
expect(any.jasmineToString().replace("\n", "")).toMatch(/<jasmine\.any\(function MyClass.*\)>/);
});
});
});

View File

@@ -3,6 +3,6 @@ jasmine.version_= {
"major": 1,
"minor": 2,
"build": 0,
"revision": 1333492179,
"release_candidate": 2
"revision": 1333557965,
"release_candidate": 3
};

View File

@@ -2,5 +2,5 @@
"major": 1,
"minor": 2,
"build": 0,
"release_candidate": 2
"release_candidate": 3
}