change repeater count expectation wording

This commit is contained in:
Andres Ornelas 2010-06-09 13:30:54 -07:00
parent fe03ea0d1f
commit f6a405c283
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ angular.scenario.dsl.expect = {
return {
count: {
toEqual: function(number) {
$scenario.addStep("Expect to see " + number + " items repeated with selector '" + selector + "'", function(done) {
$scenario.addStep("Expect that there are " + number + " items in Repeater with selector '" + selector + "'", function(done) {
var items = this.testDocument.find(selector);
if (items.length != number) {
this.result.fail("Expected " + number + " but was " + items.length);

View file

@ -46,7 +46,7 @@ describe("DSL", function() {
describe('repeater', function() {
it('should check the count of repeated elements', function() {
dslExpect.repeater('.repeater-row').count.toEqual(2);
expect(lastStep.name).toEqual("Expect to see 2 items repeated with selector '.repeater-row'");
expect(lastStep.name).toEqual("Expect that there are 2 items in Repeater with selector '.repeater-row'");
var html = "<div class='repeater-row'>a</div><div class='repeater-row'>b</div>";
executeStep(lastStep, html);
});