Permalink
Browse files

Made testing faster with VCR

  • Loading branch information...
visoft committed Aug 11, 2012
1 parent a995f1d commit da202c1ab32a350e0cd0e6fb4da02f21377ac9d1
Showing with 7,161 additions and 61 deletions.
  1. +2 −0 README.md
  2. +2 −1 features/basic_auth.feature
  3. +7 −6 features/batch_request.feature
  4. +69 −0 features/cassettes/batch_request_additions.yml
  5. +69 −0 features/cassettes/batch_request_deletes.yml
  6. +69 −0 features/cassettes/batch_request_updates.yml
  7. +46 −0 features/cassettes/clean_database_for_testing.yml
  8. +297 −0 features/cassettes/cucumber_tags/basic_auth.yml
  9. +1,459 −0 features/cassettes/cucumber_tags/batch_request.yml
  10. +326 −0 features/cassettes/cucumber_tags/complex_types.yml
  11. +64 −0 features/cassettes/cucumber_tags/error_handling.yml
  12. +2,025 −0 features/cassettes/cucumber_tags/query_builder.yml
  13. +234 −0 features/cassettes/cucumber_tags/service.yml
  14. +937 −0 features/cassettes/cucumber_tags/service_manage.yml
  15. +647 −0 features/cassettes/cucumber_tags/service_methods.yml
  16. +203 −0 features/cassettes/cucumber_tags/ssl.yml
  17. +337 −0 features/cassettes/cucumber_tags/type_conversion.yml
  18. +65 −0 features/cassettes/service_manage_additions.yml
  19. +58 −0 features/cassettes/service_manage_deletions.yml
  20. +58 −0 features/cassettes/service_manage_deletions_2.yml
  21. +89 −0 features/cassettes/unsecured_metadata.yml
  22. +4 −3 features/complex_types.feature
  23. +1 −0 features/error_handling.feature
  24. +1 −0 features/query_builder.feature
  25. +1 −0 features/service.feature
  26. +4 −3 features/service_manage.feature
  27. +3 −2 features/service_methods.feature
  28. +7 −8 features/ssl.feature
  29. +7 −1 features/step_definitions/service_steps.rb
  30. +3 −1 features/support/hooks.rb
  31. +29 −18 features/support/pickle.rb
  32. +20 −0 features/support/vcr.rb
  33. +16 −17 features/type_conversion.feature
  34. +1 −1 lib/ruby_odata/service.rb
  35. +1 −0 ruby_odata.gemspec
View
@@ -2,6 +2,8 @@
The **Open Data Protocol** (OData) is a fantastic way to query and update data over standard Web technologies. The ruby_odata library acts as a consumer of OData services.
+[![Build Status](https://secure.travis-ci.org/visoft/ruby_odata.png)](http://travis-ci.org/visoft/ruby_odata)
+
## Resources
* Source Code (hosted on GitHub): http://github.com/visoft/ruby_odata
@@ -1,5 +1,6 @@
+@basic_auth
Feature: Service Should Access Basic Auth Protected Resources
-
+
Background:
Given a HTTP BasicAuth ODataService exists using username "admin" and password "passwd"
And blueprints exist for the service
@@ -1,8 +1,9 @@
+@batch_request
Feature: Batch request
In order to minimize network traffic
As a user of the library
I want to be able to batch changes (Add/Update/Delete) and persist the batch instead of one at a time
-
+
Background:
Given a HTTP ODataService exists
And blueprints exist for the service
@@ -14,7 +15,7 @@ Scenario: Save Changes should allow for batch additions
Then the save result should equal: "true"
When I call "Products" on the service
And I order by: "Name"
- And I run the query
+ And I run the query within a cassette named "batch_request_additions"
Then the result should be:
| Name |
| Product 1 |
@@ -31,13 +32,13 @@ Scenario: Save Changes should allow for batch updates
And I call "update_object" on the service with the first last query result
When I call "Products" on the service
And I filter the query with: "Name eq 'Product 2'"
- And I run the query
+ And I run the query
And I set "Name" on the first result to "Product 2 - Updated"
And I call "update_object" on the service with the first last query result
When I save changes
When I call "Products" on the service
And I order by: "Name"
- And I run the query
+ And I run the query within a cassette named "batch_request_updates"
Then the result should be:
| Name |
| Product 1 - Updated |
@@ -55,12 +56,12 @@ Scenario: Save Changes should allow for batch deletes
And I call "delete_object" on the service with the first last query result
When I call "Products" on the service
And I filter the query with: "Name eq 'Product 3'"
- And I run the query
+ And I run the query
And I call "delete_object" on the service with the first last query result
When I save changes
When I call "Products" on the service
And I order by: "Name"
- And I run the query
+ And I run the query within a cassette named "batch_request_deletes"
Then the result should be:
| Name |
| Product 1 |

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit da202c1

Please sign in to comment.