Permalink
Browse files

Removed empty lines in example code blocks. Did not go down well with…

… Textile parser.
  • Loading branch information...
1 parent 55c5da3 commit 9d476dfe1428c447e2bf076138f33eec10073365 @keronsen keronsen committed Nov 6, 2009
Showing with 1 addition and 7 deletions.
  1. +1 −7 README.textile
View
@@ -9,7 +9,7 @@ h1. Examples
For these examples, the application under test has a function storeSomething() that we expect will call the jQuery.post() function.
-h3.Expect one call to function
+h3. Expect one call to function
bc. jack(function(){
jack.expect("jQuery.post").exactly("1 time");
@@ -24,7 +24,6 @@ bc. jack(function(){
jack.expect("jQuery.post")
.exactly("1 time")
.withArguments("http://example.com/service");
-
storeSomething();
});
@@ -34,7 +33,6 @@ bc. jack(function(){
jack.expect("jQuery.post")
.exactly("1 time")
.whereArgument(0).isOneOf("/serviceOne","/serviceTwo");
-
storeSomething();
});
@@ -48,7 +46,6 @@ bc. jack(function(){
.mock(function() {
// your mock implementation
});
-
storeSomething();
});
@@ -58,19 +55,16 @@ bc. jack(function(){
jack.expect("jQuery.post")
.exactly("1 time")
.returnValue("The value to return.");
-
storeSomething();
});
h3. Creating a mock object
bc. jack(function(){
var services = jack.create("services", ['serviceOne','serviceTwo']);
-
jack.expect("services.serviceOne")
.exactly("1 time")
.whereArgument(0).is("something");
-
useServices(services);
});

0 comments on commit 9d476df

Please sign in to comment.