Skip to content

Commit

Permalink
Merge pull request OptimalBits#129 from jurko-gospodnetic/remove-redu…
Browse files Browse the repository at this point in the history
…ndant-tests

removed duplicate tests
  • Loading branch information
manast committed Jun 25, 2015
2 parents 4cd09a5 + 4b6b39d commit add30b5
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions test/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,7 @@ exports.ResourceRemoval = function () {
var acl = new Acl(this.backend)
acl.whatResources('baz', function (err, resources) {
assert(!err)
assert.isObject(resources)
assert(Object.keys(resources).length === 0)

done()
Expand Down Expand Up @@ -942,26 +943,6 @@ exports.UserRoleRemoval = function () {
})
})
})

it('What resources have "baz" some rights on after removed blogs?', function (done) {
var acl = new Acl(this.backend)
acl.whatResources('baz', function (err, permissions) {
assert(!err)
assert.isObject(permissions)
assert(Object.keys(permissions).length === 0)
done()
})
})

it('What resources have "admin" some rights on after removed users resource?', function (done) {
var acl = new Acl(this.backend)
acl.whatResources('admin', function (err, resources) {
assert(!err)
assert.isFalse('users' in resources)
assert.isFalse('blogs' in resources)
done()
})
})
})
}

Expand Down

0 comments on commit add30b5

Please sign in to comment.