Browse files

Set VCR to not record episodes and removed the one scenario that requ…

…ires the server. Now cucumber tests can be run without the OData server being online.
  • Loading branch information...
1 parent da202c1 commit 643750d79dad383e2e02b77b4353eff1604fbb43 @visoft committed Aug 11, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −1 .travis.yml
  2. +1 −0 features/ssl.feature
  3. +1 −1 features/support/vcr.rb
View
3 .travis.yml
@@ -1,4 +1,5 @@
rvm:
- 1.8.7
- 1.9.2
-script: "bundle exec rake spec"
+ - 1.9.3
+script: "bundle exec rake"
View
1 features/ssl.feature
@@ -16,5 +16,6 @@ Scenario: Entity should fill values on protected resource
Then the method "Id" on the first result should equal: "1"
And the method "Name" on the first result should equal: "Auth Test Category"
+# TODO: Commented this scenario out because it requires the server to be online in order for the tests to run. Would like to move this to a mocked test that would accomplish the same thing...
# Scenario: Should get SSL failure if SSL used with self-signed certificate and not passing "false" as :verify_ssl option
# Given a HTTPS BasicAuth ODataService exists it should throw an exception with message containing "SSL Verification failed"
View
2 features/support/vcr.rb
@@ -3,7 +3,7 @@
VCR.configure do |c|
c.hook_into :webmock
c.cassette_library_dir = "features/cassettes"
- c.default_cassette_options = { :record => :once }
+ c.default_cassette_options = { :record => :none }
end
VCR.cucumber_tags do |t|

0 comments on commit 643750d

Please sign in to comment.