Permalink
Browse files

Use is: and is_not: in tests since it's less noisy and reads nicer.

  • Loading branch information...
bakkdoor committed Jun 29, 2011
1 parent 585d484 commit 656e9dfd1945a88167c0913236a851d35c48c2af
Showing with 869 additions and 858 deletions.
  1. +2 −2 tests/argv.fy
  2. +198 −188 tests/array.fy
  3. +26 −26 tests/assignment.fy
  4. +42 −42 tests/block.fy
  5. +126 −126 tests/class.fy
  6. +37 −37 tests/control_flow.fy
  7. +4 −4 tests/documentation.fy
  8. +26 −26 tests/enumerator.fy
  9. +22 −22 tests/exception.fy
  10. +18 −18 tests/file.fy
  11. +56 −56 tests/fixnum.fy
  12. +3 −3 tests/future.fy
  13. +28 −28 tests/hash.fy
  14. +29 −29 tests/method.fy
  15. +25 −25 tests/nil_class.fy
  16. +55 −55 tests/object.fy
  17. +37 −37 tests/pattern_matching.fy
  18. +4 −4 tests/range.fy
  19. +30 −30 tests/set.fy
  20. +4 −4 tests/stack.fy
  21. +49 −49 tests/string.fy
  22. +3 −2 tests/stringio.fy
  23. +9 −9 tests/struct.fy
  24. +4 −4 tests/symbol.fy
  25. +20 −20 tests/true_class.fy
  26. +12 −12 tests/tuple.fy
View
@@ -1,10 +1,10 @@
FancySpec describe: "ARGV & predefined values" with: {
it: "has ARGV correctly defined" when: {
- ARGV empty? is_not == true
+ ARGV empty? is_not: true
}
it: "has a __FILE__ variable defined" when: {
- __FILE__ is_not == nil
+ __FILE__ is_not: nil
__FILE__ is =~ /\/argv.fy$/
}
}
Oops, something went wrong.

0 comments on commit 656e9df

Please sign in to comment.