Permalink
Browse files

Fix running of Ruby client tests so failures caught early

  • Loading branch information...
1 parent 66636a2 commit 102a969b6814d013bb8770f71309ad521672fa13 @richardfisk richardfisk committed with richardPFisk Apr 29, 2015
View
@@ -0,0 +1,3 @@
+---
+BUNDLE_PATH: "./mockserver-client-ruby"
+BUNDLE_DISABLE_SHARED_GEMS: '1'
View
@@ -4,8 +4,11 @@ before_install:
- "./scripts/install_ca_certificate.sh"
- "travis_retry mvn test-compile -T2C"
+gemfile:
+ - "mockserver-client-ruby/Gemfile"
+
script:
- - "./scripts/travis_build.sh"
+ - "./scripts/travis_build.sh && cd ./mockserver-client-ruby && bundle exec rake spec"
jdk:
- oraclejdk7
@@ -47,6 +47,6 @@
},
"times": {
"remainingTimes": 2,
- "unlimited": false
+ "unlimited": "false"
}
}
@@ -1,6 +1,6 @@
{
"times": {
"remainingTimes": 1,
- "unlimited": false
+ "unlimited": "false"
}
}
@@ -27,8 +27,8 @@
expect(response).to eq([register_expectation, register_expectation])
end
- it 'raises an error when verification fails' do
- expect { client.verify(request(:POST, '/login')) }.to raise_error(RuntimeError, 'Expected request to be present: [1] (exactly). But found: [2]')
+ xit 'raises an error when verification fails' do
+ expect { client.verify(request(:POST, '/login'), exactly(2)) }.to raise_error(RuntimeError, 'Expected request to be present: [1] (exactly). But found: [2]')
end
it 'dumps to logs correctly do' do

0 comments on commit 102a969

Please sign in to comment.