Permalink
Browse files

changing language describing tests

  • Loading branch information...
1 parent 984e664 commit c46ea15b452ad63a00c3c29051bf1f7f8c87ef4e @rmurphey rmurphey committed Apr 11, 2012
Showing with 16 additions and 16 deletions.
  1. +6 −6 tests/app/arrays.js
  2. +2 −2 tests/app/async.js
  3. +4 −4 tests/app/functions.js
  4. +2 −2 tests/app/objects.js
  5. +2 −2 tests/app/views.js
View
12 tests/app/arrays.js
@@ -12,31 +12,31 @@ define([ 'use!underscore' ], function(_) {
fn = function() { };
});
- it("should be possible to determine the location of an item in an array", function() {
+ it("you should be able to determine the location of an item in an array", function() {
// define a function for fn so that the following will pass
expect(fn(a, 3)).to.be(2);
});
- it("should be possible to add the values of an array", function() {
+ it("you should be able to add the values of an array", function() {
// define a function for fn so that the following will pass
expect(fn(a)).to.be(10);
});
- it("should be possible to remove an item from an array", function() {
+ it("you should be able to remove an item from an array", function() {
// define a function for fn so that the following will pass
var result = fn(a);
expect(result).to.have.length(3);
expect(result.join(' ')).to.be('1 3 4');
});
- it("should be possible to add an item to the end of an array", function() {
+ it("you should be able to add an item to the end of an array", function() {
// define a function for fn so that the following will pass
var result = fn(a, 10);
expect(result).to.have.length(5);
expect(result[result.length - 1]).to.be(10);
});
- it("should be possible to create an array from two arrays", function() {
+ it("you should be able to create an array from two arrays", function() {
// define a function for fn so that the following will pass
var c = [ 'a', 'b', 'c' ],
result = fn(a, c);
@@ -45,7 +45,7 @@ define([ 'use!underscore' ], function(_) {
expect(result.join(' ')).to.be('1 2 3 4 a b c');
});
- it("should be possible to add an item anywhere in an array", function() {
+ it("you should be able to add an item anywhere in an array", function() {
// define a function for fn so that the following will pass
var result = fn(a, 'z', 2);
View
4 tests/app/async.js
@@ -6,7 +6,7 @@ define([ 'jquery', 'use!underscore' ], function($, _) {
});
- it("should return a promise that resolves true", function(done) {
+ it("you should understand how to uses 'promises'", function(done) {
var flag = false;
fn = function() {
@@ -20,7 +20,7 @@ define([ 'jquery', 'use!underscore' ], function($, _) {
});
});
- it("should receive and manipulate data from the server", function(done) {
+ it("you should be able to receive data from the server and manipulate it", function(done) {
var peopleArray,
url = '/data/testdata.json',
View
8 tests/app/functions.js
@@ -5,12 +5,12 @@ define([ 'use!underscore' ], function(_) {
},
fn = function() {};
- it("should be possible to use an array of arguments to call a function", function() {
+ it("you should be able to use an array as arguments when calling a function", function() {
var result = fn([ 'Hello', 'Ellie', '!' ]);
expect(result).to.be('Hello, Ellie!');
});
- it("should be possible to change the context in which a function is called", function() {
+ it("you should be able to change the context in which a function is called", function() {
var speak = function() {
sayIt(this.greeting, this.name, '!!!');
},
@@ -24,12 +24,12 @@ define([ 'use!underscore' ], function(_) {
expect(fn()).to.be('Hello, Rebecca!');
});
- it("should be possible to return a function from a function", function() {
+ it("you should be able to return a function from a function", function() {
// define a function for fn so that the following will pass
expect(fn('Hello')('world')).to.be('Hello, world');
});
- it("should be possible to declare a 'partial' function", function() {
+ it("you should be able to create a 'partial' function", function() {
// define a function for fn so that the following will pass
var partial = fn(sayIt, 'Hello', 'Ellie');
expect(partial('!!!')).to.be('Hello, Ellie!!!');
View
4 tests/app/objects.js
@@ -25,12 +25,12 @@ define([ 'use!underscore' ], function(_) {
};
});
- it("should be able to alter the context in which a method runs", function() {
+ it("you should be able to alter the context in which a method runs", function() {
// define a function for fn so that the following will pass
expect(fn()).to.be('Yo, Rebecca!');
});
- it("should be able to alter multiple objects at once", function() {
+ it("you should be able to alter multiple objects at once", function() {
// define a function for fn so that the following will pass
var obj1 = new C('Rebecca'),
obj2 = new C('Melissa'),
View
4 tests/app/views.js
@@ -13,7 +13,7 @@ define([ 'use!backbone', 'use!underscore', 'jquery' ], function(Backbone, _, $)
}
});
- it("should render a view from a template", function() {
+ it("you should be able to render a view using a template", function() {
var MyView = Backbone.View.extend({
template : tpl,
render : function() {
@@ -29,7 +29,7 @@ define([ 'use!backbone', 'use!underscore', 'jquery' ], function(Backbone, _, $)
expect(document.getElementById('my-view').innerHTML).to.contain('Hello, world');
});
- it("should update the view when the model changes", function() {
+ it("you should be able to update the view when the model changes", function() {
var MyView = Backbone.View.extend({
// fill in the code required in the initialize and render methods
// to make the tests below pass

0 comments on commit c46ea15

Please sign in to comment.