Skip to content

Commit

Permalink
fixing the renaming of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vybs committed Oct 4, 2012
1 parent facbe6b commit 8e8e4c1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/jasmine-test/spec/coreTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var coreTests = [
message: "should test the stream tag"
},
{
name: "Hello World",
name: "hello_world",
source: "Hello World!",
context: {},
expected: "Hello World!",
Expand Down Expand Up @@ -475,8 +475,8 @@ var coreTests = [
},
{
name: "partials",
source: '{>replace/} {>"plain"/} {>"{ref}"/}',
context: { name: "Jim", count: 42, ref: "plain" },
source: '{>replace/} {>"hello_world"/} {>"{ref}"/}',
context: { name: "Jim", count: 42, ref: "hello_world" },
expected: "Hello Jim! You have 42 new messages. Hello World! Hello World!",
message: "should test partials"
},
Expand Down Expand Up @@ -681,15 +681,15 @@ var coreTests = [
},
{
name: "error : whitespaces between the '{' plus '>' and partial identifier is not supported",
source: '{> replace/} {> "plain"/} {> "{ref}"/}',
context: { "name": "Jim", "count": 42, "ref": "plain" },
source: '{> replace/} {> "hello_world"/} {> "{ref}"/}',
context: { "name": "Jim", "count": 42, "ref": "hello_world" },
error: 'Expected buffer, comment, partial, reference, section or special but "{" found. At line : 1, column : 1',
message: "should show an error for whitespaces between the '{' plus '>' and partial identifier"
},
{
name: "whitespaces before the forward slash and the closing brace in partials supported",
source: '{>replace /} {>"plain" /} {>"{ref}" /}',
context: { "name": "Jim", "count": 42, "ref": "plain" },
source: '{>replace /} {>"hello_world" /} {>"{ref}" /}',
context: { "name": "Jim", "count": 42, "ref": "hello_world" },
expected: "Hello Jim! You have 42 new messages. Hello World! Hello World!",
message: "should ignore extra whitespacesbefore the forward slash and the closing brace in partials"
},
Expand Down

0 comments on commit 8e8e4c1

Please sign in to comment.