Improve small details in specs:

* Fix coding standards;
* Simplify some expectations (eq instead of be matcher);
* Expect identity on block instead of calling;
* Change some before call as oneliners;
* Avoid shadowing variable names;
* Improve wording where needed.
This commit is contained in:
Thibault Jouan
2013-12-19 21:17:03 +00:00
parent f5224c7569
commit ef0307fbb5
15 changed files with 68 additions and 78 deletions

View File

@@ -1,9 +1,9 @@
module TestsHelpers
def test_ok
double('test', pass?: true)
double 'test', pass?: true
end
def test_ko
double('test', pass?: false)
double 'test', pass?: false
end
end