README.markdown in citrusbyte-contest-0.0.7 vs README.markdown in citrusbyte-contest-0.0.8

- old
+ new

@@ -4,12 +4,11 @@ Contexts for Test::Unit. Description ----------- -Write declarative tests with nested contexts without performance -penalties. Contest is less than 100 lines of code and gets the job done. +Write declarative tests using nested contexts without performance penalties. Contest is less than 100 lines of code and gets the job done. Usage ----- Declare your tests as you would in RSpec or Shoulda: @@ -18,10 +17,14 @@ class SomeTest < Test::Unit::TestCase setup do @value = 1 end + + teardown do + @value = nil + end test "sample test" do assert_equal 1, @value end @@ -62,10 +65,10 @@ assert_equal 2, @value end end end -You can run it normaly, it's Test::Unit after all. If you want to run a particular test, say "yet more tests", try this: +You can run it normally, it's Test::Unit after all. If you want to run a particular test, say "yet more tests", try this: $ testrb my_test.rb -n test_yet_more_tests Or with a regular expression: