spreewald 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/spreewald/web_steps.rb +2 -2
- data/lib/spreewald_support/version.rb +1 -1
- data/tests/rails-3_capybara-1/Gemfile +10 -10
- data/tests/rails-3_capybara-1/Gemfile.lock +1 -1
- data/tests/rails-3_capybara-1/config.ru +4 -0
- data/tests/{rails-3_capybara-2 → rails-3_capybara-1}/script/cucumber +0 -0
- data/tests/{rails-3_capybara-2 → rails-3_capybara-1}/script/rails +0 -0
- data/tests/rails-3_capybara-2/Gemfile +11 -11
- data/tests/rails-3_capybara-2/Gemfile.lock +1 -1
- data/tests/rails-3_capybara-2/config.ru +1 -0
- data/tests/rails-3_capybara-2/script +1 -0
- data/tests/rails-4_capybara-3/Gemfile.lock +1 -1
- data/tests/rails-4_capybara-3/public/fixture_files +1 -0
- data/tests/shared/app/controllers/downloads_controller.rb +7 -0
- data/tests/shared/features/shared/web_steps.feature +5 -0
- data/tests/shared/public/fixture_files/spreadsheet.ods +0 -0
- metadata +16 -6
- data/tests/rails-3_capybara-2/config.ru +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 441949c9d10981decf8ef5b599ca0fa2f866db51
|
4
|
+
data.tar.gz: adae6251f467dc3f011502c7475c4380078f95d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '069487bf75d2c585732dd2d23bf6ad02c51ed20a47c6b83dd7c7b52f2b85637f4fdcd411ea84194bf19dbfaa64d80c6eed86f521affe271b9bce29920c10ec13'
|
7
|
+
data.tar.gz: ce9a12d1186a433eb8818114ae2102e75aff99a7ca8f38e4993637f450ca1c4dea3e5ed932c535d27dc26e895b04b6983ab9a5c5161634939b15294859276d3a
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
5
5
|
|
6
|
+
## 2.1.1
|
7
|
+
Fix `Then I should get a download with filename "..."' step
|
8
|
+
|
6
9
|
## 2.1.0
|
7
10
|
'Then show me the page' supports capybara-screenshot. (see [issue #81](https://github.com/makandra/spreewald/issues/81))
|
8
11
|
|
data/lib/spreewald/web_steps.rb
CHANGED
@@ -360,14 +360,14 @@ end.overridable
|
|
360
360
|
|
361
361
|
# Checks `Content-Type` HTTP header
|
362
362
|
Then /^I should get a response with content-type "([^\"]*)"$/ do |expected_content_type|
|
363
|
-
expect(page.response_headers['Content-Type']).to
|
363
|
+
expect(page.response_headers['Content-Type']).to match /\A#{Regexp.quote(expected_content_type)}($|;)/
|
364
364
|
end.overridable
|
365
365
|
|
366
366
|
# Checks `Content-Disposition` HTTP header
|
367
367
|
#
|
368
368
|
# Attention: Doesn't work with Selenium, see https://github.com/jnicklas/capybara#gotchas
|
369
369
|
Then /^I should get a download with filename "([^\"]*)"$/ do |filename|
|
370
|
-
expect(page.response_headers['Content-Disposition']).to
|
370
|
+
expect(page.response_headers['Content-Disposition']).to match /filename="#{Regexp.escape(filename)}"$/
|
371
371
|
end.overridable
|
372
372
|
|
373
373
|
# Checks that a certain option is selected for a text field
|
@@ -2,18 +2,18 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
gem 'rails', '~>3.2'
|
4
4
|
gem "sqlite3", :platform=>:ruby
|
5
|
-
gem 'database_cleaner'
|
6
|
-
gem 'launchy'
|
7
|
-
gem 'capybara', "~>1" # for ruby 1.8.7 compatibility
|
8
|
-
gem 'cucumber-rails'
|
9
|
-
gem 'cucumber', '1.3.8'
|
10
|
-
gem 'selenium-webdriver'
|
11
|
-
|
12
|
-
gem 'rspec-rails'
|
13
5
|
gem 'haml-rails'
|
14
|
-
|
15
6
|
gem 'gemika'
|
16
7
|
|
17
|
-
gem 'spreewald', :path => '../..'
|
18
8
|
gem 'pry'
|
19
9
|
|
10
|
+
group :test do
|
11
|
+
gem 'database_cleaner'
|
12
|
+
gem 'launchy'
|
13
|
+
gem 'capybara', "~>1" # for ruby 1.8.7 compatibility
|
14
|
+
gem 'cucumber-rails'
|
15
|
+
gem 'cucumber', '1.3.8', require: false
|
16
|
+
gem 'selenium-webdriver'
|
17
|
+
gem 'rspec-rails'
|
18
|
+
gem 'spreewald', :path => '../..'
|
19
|
+
end
|
File without changes
|
File without changes
|
@@ -2,19 +2,19 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
gem 'rails', '~>3.2'
|
4
4
|
gem 'sqlite3', :platform => :ruby
|
5
|
-
gem 'ruby-debug', :platforms => :ruby_18
|
6
|
-
gem 'database_cleaner'
|
7
|
-
gem 'launchy'
|
8
|
-
gem 'capybara'#, "~>2"
|
9
|
-
gem 'cucumber-rails'
|
10
|
-
gem 'cucumber', '1.3.8'
|
11
|
-
gem 'selenium-webdriver'
|
12
|
-
|
13
|
-
gem 'rspec-rails'
|
14
5
|
gem 'haml-rails'
|
15
|
-
|
16
6
|
gem 'gemika'
|
17
7
|
|
18
|
-
gem '
|
8
|
+
gem 'ruby-debug', :platforms => :ruby_18
|
19
9
|
gem 'pry'
|
20
10
|
|
11
|
+
group :test do
|
12
|
+
gem 'database_cleaner'
|
13
|
+
gem 'launchy'
|
14
|
+
gem 'capybara'#, "~>2"
|
15
|
+
gem 'cucumber-rails'
|
16
|
+
gem 'cucumber', '1.3.8', require: false
|
17
|
+
gem 'selenium-webdriver'
|
18
|
+
gem 'rspec-rails'
|
19
|
+
gem 'spreewald', :path => '../..'
|
20
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-3_capybara-2/../rails-3_capybara-1/config.ru
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-3_capybara-2/../rails-3_capybara-1/script/
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-4_capybara-3/public/../../shared/public/fixture_files/
|
@@ -218,3 +218,8 @@ Feature: Web steps
|
|
218
218
|
Scenario: /^show me the page$/
|
219
219
|
When I am on "/static_pages/home"
|
220
220
|
Then 'show me the page' should open the page or take a screenshot
|
221
|
+
|
222
|
+
|
223
|
+
Scenario: /^I should get a download with filename "([^\"]*)"$/
|
224
|
+
When I go to "/downloads/spreadsheet"
|
225
|
+
Then I should get a download with filename "test.ods"
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spreewald
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Kraze
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
@@ -182,6 +182,7 @@ files:
|
|
182
182
|
- tests/rails-3_capybara-1/Gemfile.lock
|
183
183
|
- tests/rails-3_capybara-1/Rakefile
|
184
184
|
- tests/rails-3_capybara-1/app
|
185
|
+
- tests/rails-3_capybara-1/config.ru
|
185
186
|
- tests/rails-3_capybara-1/config/application.rb
|
186
187
|
- tests/rails-3_capybara-1/config/boot.rb
|
187
188
|
- tests/rails-3_capybara-1/config/cucumber.yml
|
@@ -200,6 +201,8 @@ files:
|
|
200
201
|
- tests/rails-3_capybara-1/features/support/selectors.rb
|
201
202
|
- tests/rails-3_capybara-1/features/support/selenium.rb
|
202
203
|
- tests/rails-3_capybara-1/public
|
204
|
+
- tests/rails-3_capybara-1/script/cucumber
|
205
|
+
- tests/rails-3_capybara-1/script/rails
|
203
206
|
- tests/rails-3_capybara-2/.ruby-version
|
204
207
|
- tests/rails-3_capybara-2/Gemfile
|
205
208
|
- tests/rails-3_capybara-2/Gemfile.lock
|
@@ -210,8 +213,7 @@ files:
|
|
210
213
|
- tests/rails-3_capybara-2/db
|
211
214
|
- tests/rails-3_capybara-2/features
|
212
215
|
- tests/rails-3_capybara-2/public
|
213
|
-
- tests/rails-3_capybara-2/script
|
214
|
-
- tests/rails-3_capybara-2/script/rails
|
216
|
+
- tests/rails-3_capybara-2/script
|
215
217
|
- tests/rails-4_capybara-3/.gitignore
|
216
218
|
- tests/rails-4_capybara-3/Gemfile
|
217
219
|
- tests/rails-4_capybara-3/Gemfile.lock
|
@@ -260,9 +262,11 @@ files:
|
|
260
262
|
- tests/rails-4_capybara-3/public/422.html
|
261
263
|
- tests/rails-4_capybara-3/public/500.html
|
262
264
|
- tests/rails-4_capybara-3/public/favicon.ico
|
265
|
+
- tests/rails-4_capybara-3/public/fixture_files
|
263
266
|
- tests/rails-4_capybara-3/script/cucumber
|
264
267
|
- tests/shared/app/controllers/application_controller.rb
|
265
268
|
- tests/shared/app/controllers/authenticated_controller.rb
|
269
|
+
- tests/shared/app/controllers/downloads_controller.rb
|
266
270
|
- tests/shared/app/controllers/emails_controller.rb
|
267
271
|
- tests/shared/app/controllers/forms_controller.rb
|
268
272
|
- tests/shared/app/controllers/static_pages_controller.rb
|
@@ -300,6 +304,7 @@ files:
|
|
300
304
|
- tests/shared/features/support/paths.rb
|
301
305
|
- tests/shared/features/support/selectors.rb
|
302
306
|
- tests/shared/public/favicon.ico
|
307
|
+
- tests/shared/public/fixture_files/spreadsheet.ods
|
303
308
|
- tests/shared/public/javascripts/.keep
|
304
309
|
homepage: https://github.com/makandra/spreewald
|
305
310
|
licenses:
|
@@ -331,6 +336,7 @@ test_files:
|
|
331
336
|
- tests/rails-3_capybara-1/Gemfile.lock
|
332
337
|
- tests/rails-3_capybara-1/Rakefile
|
333
338
|
- tests/rails-3_capybara-1/app
|
339
|
+
- tests/rails-3_capybara-1/config.ru
|
334
340
|
- tests/rails-3_capybara-1/config/application.rb
|
335
341
|
- tests/rails-3_capybara-1/config/boot.rb
|
336
342
|
- tests/rails-3_capybara-1/config/cucumber.yml
|
@@ -349,6 +355,8 @@ test_files:
|
|
349
355
|
- tests/rails-3_capybara-1/features/support/selectors.rb
|
350
356
|
- tests/rails-3_capybara-1/features/support/selenium.rb
|
351
357
|
- tests/rails-3_capybara-1/public
|
358
|
+
- tests/rails-3_capybara-1/script/cucumber
|
359
|
+
- tests/rails-3_capybara-1/script/rails
|
352
360
|
- tests/rails-3_capybara-2/.ruby-version
|
353
361
|
- tests/rails-3_capybara-2/Gemfile
|
354
362
|
- tests/rails-3_capybara-2/Gemfile.lock
|
@@ -359,8 +367,7 @@ test_files:
|
|
359
367
|
- tests/rails-3_capybara-2/db
|
360
368
|
- tests/rails-3_capybara-2/features
|
361
369
|
- tests/rails-3_capybara-2/public
|
362
|
-
- tests/rails-3_capybara-2/script
|
363
|
-
- tests/rails-3_capybara-2/script/rails
|
370
|
+
- tests/rails-3_capybara-2/script
|
364
371
|
- tests/rails-4_capybara-3/.gitignore
|
365
372
|
- tests/rails-4_capybara-3/Gemfile
|
366
373
|
- tests/rails-4_capybara-3/Gemfile.lock
|
@@ -409,9 +416,11 @@ test_files:
|
|
409
416
|
- tests/rails-4_capybara-3/public/422.html
|
410
417
|
- tests/rails-4_capybara-3/public/500.html
|
411
418
|
- tests/rails-4_capybara-3/public/favicon.ico
|
419
|
+
- tests/rails-4_capybara-3/public/fixture_files
|
412
420
|
- tests/rails-4_capybara-3/script/cucumber
|
413
421
|
- tests/shared/app/controllers/application_controller.rb
|
414
422
|
- tests/shared/app/controllers/authenticated_controller.rb
|
423
|
+
- tests/shared/app/controllers/downloads_controller.rb
|
415
424
|
- tests/shared/app/controllers/emails_controller.rb
|
416
425
|
- tests/shared/app/controllers/forms_controller.rb
|
417
426
|
- tests/shared/app/controllers/static_pages_controller.rb
|
@@ -449,4 +458,5 @@ test_files:
|
|
449
458
|
- tests/shared/features/support/paths.rb
|
450
459
|
- tests/shared/features/support/selectors.rb
|
451
460
|
- tests/shared/public/favicon.ico
|
461
|
+
- tests/shared/public/fixture_files/spreadsheet.ods
|
452
462
|
- tests/shared/public/javascripts/.keep
|