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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6d36ecf75fe66a1bf4dcfc6a8e2dfdd7e9eb074
4
- data.tar.gz: 6ebbdbc38a6c0465c08b47ef42d7627171eda5ce
3
+ metadata.gz: c3e53fb443e8bf646f3d5d3f92a168caa911894c
4
+ data.tar.gz: 9d42eb2d035223b02e6945ee909a311602f81248
5
5
  SHA512:
6
- metadata.gz: 72df691e2a4ca57bbef566e8c2fc9b794f5d7b60964858bcce5a1c537ae06ae754b8a9cec33b186eedf045eea9ac32bd2e49e5c296a42bf5149d2746047fc7a7
7
- data.tar.gz: 5a9a30d7cfbbd6b6e430f24310521f89e8cec2eed8d821b0fa50a2f979a3ec1aad50e70ce600f4128a0c294760e7a335135595bab98fc270c5ca770e382d13fe
6
+ metadata.gz: 5802c9730faf4812f1bc015e77fcf42ac1b463e9906bf18847714ccd68a1f1f0a28512c68ae40c36651319d787e230489f8cbfa754c84de510e224ec297aad36
7
+ data.tar.gz: 660dc61ac22e5783d1a40e902e960f00de087eaf20001a5841eee3666a6be3383f1f2d5bab7862f31a9f70d71ffc82c4a3f64ce66044f68aa4f999fdc58f8c84
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Version 0.0.19 / 2018-1-25
2
+ * Enhancements
3
+ * Added own shared examples to init script and to in built specs
4
+
1
5
  Version 0.0.18 / 2018-1-25
2
6
  * Fixes
3
7
  * Updated 'soaspec-init' so that it works again.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- soaspec (0.0.17)
4
+ soaspec (0.0.18)
5
5
  rest-client (>= 2.0)
6
6
  rspec (~> 3.0)
7
7
  rspec-its (>= 1.2.0)
@@ -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"
@@ -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/shared_examples'
15
+ require 'soaspec/soaspec_shared_examples'
16
16
  require 'soaspec/hash_methods'
17
17
  require 'soaspec/spec_logger'
18
18
 
@@ -1,3 +1,3 @@
1
1
  module Soaspec
2
- VERSION = '0.0.18'
2
+ VERSION = '0.0.19'
3
3
  end
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.18
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/shared_examples.rb
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