README.rdoc in test_unit-given-0.9.1 vs README.rdoc in test_unit-given-0.9.2

- old
+ new

@@ -164,18 +164,18 @@ // assume mocks were called } end end -This is somewhat confusing. We could solve it using two blocks provided by this library, +test_runs+, and +mocks_shouldve_been_called+, like so: +This is somewhat confusing. We could solve it using two blocks provided by this library, +the_test_runs+, and +mocks_shouldve_been_called+, like so: class CircleTest < Test::Unit::Given::TestCase test_that "our external diameter service is being used" do Given { @diameter_service = mock() } - When test_runs + When the_test_runs Then { @diameter_service.expects(:get_diameter).with(10).returns(400) } Given { @circle = Circle.new(10,@diameter_service) @@ -185,10 +185,10 @@ } Then mocks_shouldve_been_called end end -Although both <tt>test_runs</tt> and <tt>mocks_shouldve_been_called</tt> are no-ops, +Although both <tt>the_test_runs</tt> and <tt>mocks_shouldve_been_called</tt> are no-ops, they allow our tests to be readable and make clear what the assertions are that we are making. Yes, this makes our test a bit longer, but it's *much* more clear. === What about block-based assertions, like +assert_raises+