Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed tests after Paul's changes

  • Loading branch information...
commit 37edc2407ac3b6824abb7ebfa60553f10596b3e0 1 parent c8b704a
Scott Burch authored
Showing with 11 additions and 11 deletions.
  1. +11 −11 test/spec/TestUserSpec.js
View
22 test/spec/TestUserSpec.js
@@ -130,6 +130,17 @@ describe('couch-ar', function () {
expect(user).not.toBeDefined();
});
});
+
+ });
+
+ describe('findAllByUsername() method', function() {
+ it('should find user when using findByUsername with a good range', function() {
+ domain.TestUser.findAllByUsername(['a','Z'], function(users) {
+ expect(users.length).toBe(2);
+ asyncSpecDone();
+ });
+ asyncSpecWait();
+ });
});
describe('findById() method', function () {
@@ -160,17 +171,6 @@ describe('couch-ar', function () {
});
- describe('findAllByDateCreated()', function () {
- it('should return docs', function () {
- domain.TestUser.findAllByDateCreated(['a', 'Z'], function (users) {
- expect(users.length).toEqual(2);
- asyncSpecDone();
- })
- asyncSpecWait();
- })
- })
-
-
describe('custom views', function () {
it('should add the finder', function () {
expect(domain.TestUser.findByFirstOrLastName).toBeDefined();
Please sign in to comment.
Something went wrong with that request. Please try again.