test/setup.rb in cutest-0.0.4 vs test/setup.rb in cutest-0.0.5
- old
+ new
@@ -11,5 +11,13 @@
end
test "...it should preserve the original values from the setup" do |params|
assert 23 == params[:a]
end
+
+setup do
+ "Hello world!"
+end
+
+test "only the most recently defined setup block is executed" do |value|
+ assert "Hello world!" == value
+end