README.rdoc in pickle-0.2.8 vs README.rdoc in pickle-0.2.9

- old
+ new

@@ -167,11 +167,18 @@ Given 10 users exist "Given <b>n models</b> exist with <b>fields</b>", examples: Given 10 users exist with activated: false + +"Given the following <b>models</b> exist:", examples: + Given the following users exist + | name | activated | + | Fred | false | + | Ethel | true | + ==== Then steps ===== Asserting existence of models "Then <b>a model</b> should exist", e.g. @@ -219,16 +226,17 @@ Then the comment should be in the post's comments ===== Asserting predicate methods "Then <b>a model</b> should [be|have] [a|an] <b>predicate</b>", e.g. - - Then the user should have a status # => user.status?.should == true - Then the car: "batmobile" should be fast # => car.fast?.should == true + Then the user should have a status # => user.status.should be_present + Then the user should have a stale password # => user.should have_stale_password + Then the car: "batmobile" should be fast # => car.should be_fast + "Then <b>a model</b> should not [be|have] [a|an] <b>predicate</b>", e.g. - Then person: "fred" should not be childless # => fred.childless?.should == false + Then person: "fred" should not be childless # => fred.should_not be_childless === Regexps for use in your own steps By default you get some regexps available in the main namespace for use in creating your own steps: `capture_model`, `capture_fields`, and others (see lib/pickle.rb) \ No newline at end of file