Skip to content

Commit

Permalink
Added basic spec for 'match' Matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
aq1018 committed Apr 26, 2009
1 parent 2cf05fb commit dcb0b50
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/specHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"unitTest/inspecSepc.js",
"unitTest/matchers/sharedMatcherSpec.js",
"unitTest/matchers/equalMatcherSpec.js",
"unitTest/matchers/matchMatcherSpec.js",
"unitTest/runerSpec.js",
"unitTest/dsl/bddSpec.js",
"unitTest/util/treeNodeSpec.js",
Expand Down
12 changes: 12 additions & 0 deletions spec/unitTest/matchers/matchMatcherSpec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
describe("Matchers", function(){
describe("match", function(){
var matcher = Inspec.Matchers.match;
var actual = "hello world";
var expectedPass = /^hello/;
var expectedFail = /^Hello/;
var errMsg = 'expected "hello world" to match /^Hello/'
var negativeErrMsg = 'expected "hello world" to not match /^hello/'

itShouldBehaveLike("a standard matcher")
})
})

0 comments on commit dcb0b50

Please sign in to comment.