soaspec 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/Gemfile.lock +1 -1
- data/exe/soaspec-init +28 -0
- data/lib/soaspec.rb +1 -1
- data/lib/soaspec/{shared_examples.rb → soaspec_shared_examples.rb} +0 -0
- data/lib/soaspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3e53fb443e8bf646f3d5d3f92a168caa911894c
|
4
|
+
data.tar.gz: 9d42eb2d035223b02e6945ee909a311602f81248
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5802c9730faf4812f1bc015e77fcf42ac1b463e9906bf18847714ccd68a1f1f0a28512c68ae40c36651319d787e230489f8cbfa754c84de510e224ec297aad36
|
7
|
+
data.tar.gz: 660dc61ac22e5783d1a40e902e960f00de087eaf20001a5841eee3666a6be3383f1f2d5bab7862f31a9f70d71ffc82c4a3f64ce66044f68aa4f999fdc58f8c84
|
data/ChangeLog
CHANGED
data/Gemfile.lock
CHANGED
data/exe/soaspec-init
CHANGED
@@ -40,6 +40,8 @@ source 'https://rubygems.org'
|
|
40
40
|
|
41
41
|
gem 'data_magic'
|
42
42
|
gem 'require_all'
|
43
|
+
gem 'rspec_junit_formatter'
|
44
|
+
gem 'rake'
|
43
45
|
gem 'soaspec'
|
44
46
|
|
45
47
|
EOF
|
@@ -149,6 +151,28 @@ soap_example.default_hash = { city_name: 'Sydney', country_name: 'Australia' }
|
|
149
151
|
|
150
152
|
end
|
151
153
|
|
154
|
+
soap_example.default_hash = { city_name: 'Washington' }
|
155
|
+
context 'error scenarios' do
|
156
|
+
context soap_example do
|
157
|
+
describe Exchange.new(:error) do
|
158
|
+
it_behaves_like 'error scenario'
|
159
|
+
end
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
|
164
|
+
EOF
|
165
|
+
|
166
|
+
shared_examples_content = <<-EOF
|
167
|
+
|
168
|
+
require 'rspec'
|
169
|
+
|
170
|
+
shared_examples_for 'error scenario' do
|
171
|
+
it 'does not have status code of 200' do
|
172
|
+
expect(described_class.status_code).not_to eq 200
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
152
176
|
EOF
|
153
177
|
|
154
178
|
soap_template_content = <<-EOF
|
@@ -213,6 +237,7 @@ create_file(filename: 'Rakefile', content: rake_content)
|
|
213
237
|
create_file(filename: 'README.md', content: readme_content)
|
214
238
|
create_folder 'lib'
|
215
239
|
create_file(filename: 'lib/weather_web_service.rb', content: weather_web_service)
|
240
|
+
create_file filename: 'lib/shared_example.rb', content: shared_examples_content
|
216
241
|
create_folder 'config'
|
217
242
|
create_folder 'config/data'
|
218
243
|
create_file(filename: 'config/data/default.yml', content: default_yaml_content)
|
@@ -222,3 +247,6 @@ create_file(filename: 'spec/soap_spec.rb', content: soap_spec_content)
|
|
222
247
|
create_folder 'template'
|
223
248
|
create_file(filename: 'template/soap_template.xml', content: soap_template_content)
|
224
249
|
create_folder 'logs'
|
250
|
+
|
251
|
+
puts "Run 'bundle install' to install necessary gems"
|
252
|
+
puts "Run 'rake spec' to run the tests"
|
data/lib/soaspec.rb
CHANGED
@@ -12,7 +12,7 @@ require 'soaspec/basic_soap_handler'
|
|
12
12
|
require 'soaspec/tester'
|
13
13
|
require 'soaspec/exchange'
|
14
14
|
require 'soaspec/matchers'
|
15
|
-
require 'soaspec/
|
15
|
+
require 'soaspec/soaspec_shared_examples'
|
16
16
|
require 'soaspec/hash_methods'
|
17
17
|
require 'soaspec/spec_logger'
|
18
18
|
|
File without changes
|
data/lib/soaspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soaspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SamuelGarrattIQA
|
@@ -152,7 +152,7 @@ files:
|
|
152
152
|
- lib/soaspec/exchange.rb
|
153
153
|
- lib/soaspec/hash_methods.rb
|
154
154
|
- lib/soaspec/matchers.rb
|
155
|
-
- lib/soaspec/
|
155
|
+
- lib/soaspec/soaspec_shared_examples.rb
|
156
156
|
- lib/soaspec/spec_logger.rb
|
157
157
|
- lib/soaspec/tester.rb
|
158
158
|
- lib/soaspec/version.rb
|