README.md in api-tester-0.3.1 vs README.md in api-tester-1.0.0
- old
+ new
@@ -100,21 +100,21 @@
values_array = field.negative_boundary_values
```
Define which modules you want to use through a config
```ruby
-config = ApiTester::Config().with_module(Format.new)
+config = ApiTester::Config().with_module(Format)
```
Put them together and call go and off you go!
```ruby
request = ApiTester::Request.new.add_field(ApiTester::Field.new "fieldName")
expected_response = ApiTester::Response.new(200).add_field(ApiTester::Field.new "fieldName")
endpoint = ApiTester::Endpoint.new "Unused Name", "http://yourbase.com/api/endpoint"
endpoint.add_method ApiTester::SupportedVerbs::GET, expected_response, request
contract = Contract.new "API Name"
contract.add_endpoint endpoint
-config = ApiTester::Config().with_module(Format.new)
+config = ApiTester::Config().with_module(Format)
expect(ApiTester.go(contract, config)).to be true
```
## Dependencies