README.md in airborne-0.0.19 vs README.md in airborne-0.0.20

- old
+ new

@@ -69,9 +69,20 @@ get '/simple_path_get' #may or may not return coordinates expect_json_types("address.coordinates", optional({latitude: :float, longitude: :float})) end ``` +Additionally, when calling `expect_json`, you can provide a regex pattern in a call to `regex`: + +```ruby +describe 'sample spec' do + it 'should validate types' do + get 'http://example.com/api/v1/simple_get' #json api that returns { "name" : "John Doe" } + expect_json({name: regex("^John")}) + end +end +``` + When calling `expect_json` or `expect_json_types`, you can optionally provide a block and run your own `rspec` expectations: ```ruby describe 'sample spec' do it 'should validate types' do