Skip to content

Commit

Permalink
Improved naming of behaviour tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
vzickner committed Nov 22, 2015
1 parent e5b1be6 commit 09ca4c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/behaviour/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('Register', function() {

var abilitylist = by.repeater('ability in ctrl.abilities');

it('should have two entries: "Mocked Ability 1" and "Mocked Ability 2"', function() {
it('has two entries: "Mocked Ability 1" and "Mocked Ability 2"', function() {
mock(['abilities']);

browser.getPart('register');
Expand All @@ -24,7 +24,7 @@ describe('Register', function() {
expect(element(abilitylist.column('ability.name').row(1)).getInnerHtml()).to.eventually.contain('Mocked Ability');
});

it('register with correct data', function() {
it('allows to register with correct data', function() {
mock(['volunteers']);

browser.getPart('register');
Expand Down Expand Up @@ -63,7 +63,7 @@ describe('Register', function() {

});

it('register with adult=false', function() {
it('shows an error for adult=false', function() {
mock(['volunteers']);

browser.getPart('register');
Expand Down Expand Up @@ -98,4 +98,4 @@ describe('Register', function() {
expect(element.all(by.className('has-error')).count()).to.eventually.equal(1);

});
});
});

0 comments on commit 09ca4c1

Please sign in to comment.