Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Unify custom matcher naming in tests

  • Loading branch information...
commit 880733834d68f10c50d539f8f19f22583d2b2b5c 1 parent 92feb8e
@kana authored
Showing with 9 additions and 9 deletions.
  1. +5 −5 t/custom-matchers.vim
  2. +2 −2 t/expect.vim
  3. +2 −2 t/tools.vim
View
10 t/custom-matchers.vim
@@ -2,15 +2,15 @@ describe 'vspec#customize_matcher'
it 'should define a custom matcher'
let caught = !!0
try
- Expect [] toBeEmpty
+ Expect [] to_be_empty
let caught = !!0
- catch /^vspec:InvalidOperation:Unknown custom matcher - 'toBeEmpty'$/
+ catch /^vspec:InvalidOperation:Unknown custom matcher - 'to_be_empty'$/
let caught = !0
endtry
- Expect caught toBeTrue
+ Expect caught to_be_true
- call vspec#customize_matcher('toBeEmpty', function('empty'))
+ call vspec#customize_matcher('to_be_empty', function('empty'))
- Expect [] toBeEmpty
+ Expect [] to_be_empty
end
end
View
4 t/expect.vim
@@ -11,7 +11,7 @@ describe ':Expect'
catch /^vspec:ExpectationFailure:/
let is_succeeded = !!0
endtry
- Expect is_succeeded toBeFalse
+ Expect is_succeeded to_be_false
end
it 'should parse "string" without errors'
@@ -36,6 +36,6 @@ describe ':ExpectNot'
catch /^vspec:ExpectationFailure:/
let is_succeeded = !!0
endtry
- Expect is_succeeded toBeFalse
+ Expect is_succeeded to_be_false
end
end
View
4 t/tools.vim
@@ -24,8 +24,8 @@ end
describe 'Call'
it 'should call a script-local function'
- Expect Call('s:is_matcher', '==') toBeTrue
- Expect Call('s:is_matcher', '=?') toBeFalse
+ Expect Call('s:is_matcher', '==') to_be_true
+ Expect Call('s:is_matcher', '=?') to_be_false
end
it 'should call a non-script-local function'
Please sign in to comment.
Something went wrong with that request. Please try again.