with_popup 0.0.7 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/with_popup.rb +1 -1
- data/lib/with_popup/controllers.rb +6 -0
- data/lib/with_popup/controllers/action_controller.rb +13 -0
- data/lib/with_popup/engine.rb +1 -1
- data/lib/with_popup/helpers/form_helper.rb +13 -9
- data/lib/with_popup/helpers/form_tag_helper.rb +45 -41
- data/lib/with_popup/rack.rb +61 -58
- data/lib/with_popup/test_helpers.rb +6 -0
- data/lib/with_popup/test_helpers/controller.rb +13 -0
- data/lib/with_popup/version.rb +1 -1
- data/spec/controllers/test_helper_spec.rb +35 -0
- data/spec/dummy/log/development.log +124 -0
- data/spec/dummy/log/test.log +2597 -0
- data/spec/examples.txt +28 -24
- data/spec/rails_helper.rb +4 -0
- metadata +7 -2
- data/lib/with_popup/controller.rb +0 -9
data/spec/examples.txt
CHANGED
@@ -1,26 +1,30 @@
|
|
1
1
|
example_id | status | run_time |
|
2
2
|
---------------------------------------------------------- | ------ | --------------- |
|
3
|
-
./spec/
|
4
|
-
./spec/
|
5
|
-
./spec/
|
6
|
-
./spec/
|
7
|
-
./spec/features/form_helper_request_spec.rb[1:
|
8
|
-
./spec/features/form_helper_request_spec.rb[1:
|
9
|
-
./spec/features/form_helper_request_spec.rb[1:
|
10
|
-
./spec/features/form_helper_request_spec.rb[1:
|
11
|
-
./spec/features/
|
12
|
-
./spec/features/
|
13
|
-
./spec/features/
|
14
|
-
./spec/features/
|
15
|
-
./spec/features/form_tag_helper_request_spec.rb[1:
|
16
|
-
./spec/features/form_tag_helper_request_spec.rb[1:
|
17
|
-
./spec/features/form_tag_helper_request_spec.rb[1:
|
18
|
-
./spec/features/form_tag_helper_request_spec.rb[1:
|
19
|
-
./spec/features/form_tag_helper_request_spec.rb[1:
|
20
|
-
./spec/features/form_tag_helper_request_spec.rb[1:
|
21
|
-
./spec/features/form_tag_helper_request_spec.rb[1:
|
22
|
-
./spec/features/form_tag_helper_request_spec.rb[1:
|
23
|
-
./spec/features/form_tag_helper_request_spec.rb[1:
|
24
|
-
./spec/features/form_tag_helper_request_spec.rb[1:
|
25
|
-
./spec/features/form_tag_helper_request_spec.rb[1:
|
26
|
-
./spec/features/form_tag_helper_request_spec.rb[1:
|
3
|
+
./spec/controllers/test_helper_spec.rb[1:1:1:1] | passed | 0.00223 seconds |
|
4
|
+
./spec/controllers/test_helper_spec.rb[1:1:2:1] | passed | 0.00102 seconds |
|
5
|
+
./spec/controllers/test_helper_spec.rb[1:2:1:1] | passed | 0.00095 seconds |
|
6
|
+
./spec/controllers/test_helper_spec.rb[1:2:2:1] | passed | 0.00646 seconds |
|
7
|
+
./spec/features/form_helper_request_spec.rb[1:1:1:1:1] | passed | 0.39635 seconds |
|
8
|
+
./spec/features/form_helper_request_spec.rb[1:1:2:1:1] | passed | 0.36581 seconds |
|
9
|
+
./spec/features/form_helper_request_spec.rb[1:2:1:1:1] | passed | 2.19 seconds |
|
10
|
+
./spec/features/form_helper_request_spec.rb[1:2:2:1:1] | passed | 0.37637 seconds |
|
11
|
+
./spec/features/form_helper_request_spec.rb[1:3:1:1:1] | passed | 0.36522 seconds |
|
12
|
+
./spec/features/form_helper_request_spec.rb[1:3:2:1:1] | passed | 0.36482 seconds |
|
13
|
+
./spec/features/form_helper_request_spec.rb[1:4:1:1:1] | passed | 0.35763 seconds |
|
14
|
+
./spec/features/form_helper_request_spec.rb[1:4:2:1:1] | passed | 0.37572 seconds |
|
15
|
+
./spec/features/form_tag_helper_request_spec.rb[1:1:1:1:1] | passed | 0.35639 seconds |
|
16
|
+
./spec/features/form_tag_helper_request_spec.rb[1:1:2:1:1] | passed | 0.40957 seconds |
|
17
|
+
./spec/features/form_tag_helper_request_spec.rb[1:2:1:1:1] | passed | 0.38978 seconds |
|
18
|
+
./spec/features/form_tag_helper_request_spec.rb[1:2:2:1:1] | passed | 0.37216 seconds |
|
19
|
+
./spec/features/form_tag_helper_request_spec.rb[1:3:1:1:1] | passed | 0.35396 seconds |
|
20
|
+
./spec/features/form_tag_helper_request_spec.rb[1:3:2:1:1] | passed | 0.37215 seconds |
|
21
|
+
./spec/features/form_tag_helper_request_spec.rb[1:4:1:1:1] | passed | 0.35015 seconds |
|
22
|
+
./spec/features/form_tag_helper_request_spec.rb[1:4:2:1:1] | passed | 0.36802 seconds |
|
23
|
+
./spec/features/form_tag_helper_request_spec.rb[1:5:1:1:1] | passed | 0.35856 seconds |
|
24
|
+
./spec/features/form_tag_helper_request_spec.rb[1:5:2:1:1] | passed | 0.37288 seconds |
|
25
|
+
./spec/features/form_tag_helper_request_spec.rb[1:6:1:1:1] | passed | 0.35227 seconds |
|
26
|
+
./spec/features/form_tag_helper_request_spec.rb[1:6:2:1:1] | passed | 0.37941 seconds |
|
27
|
+
./spec/features/form_tag_helper_request_spec.rb[1:7:1:1] | passed | 0.35925 seconds |
|
28
|
+
./spec/features/form_tag_helper_request_spec.rb[1:8:1:1] | passed | 0.36173 seconds |
|
29
|
+
./spec/features/form_tag_helper_request_spec.rb[1:9:1:1] | passed | 0.36311 seconds |
|
30
|
+
./spec/features/form_tag_helper_request_spec.rb[1:10:1:1] | passed | 0.35876 seconds |
|
data/spec/rails_helper.rb
CHANGED
@@ -11,6 +11,8 @@ require 'capybara/rails'
|
|
11
11
|
require 'capybara/poltergeist'
|
12
12
|
Capybara.javascript_driver = :poltergeist
|
13
13
|
|
14
|
+
require 'with_popup/test_helpers'
|
15
|
+
|
14
16
|
# Requires supporting ruby files with custom matchers and macros, etc, in
|
15
17
|
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
|
16
18
|
# run as spec files by default. This means that files in spec/support that end
|
@@ -54,4 +56,6 @@ RSpec.configure do |config|
|
|
54
56
|
# The different available types are documented in the features, such as in
|
55
57
|
# https://relishapp.com/rspec/rspec-rails/docs
|
56
58
|
config.infer_spec_type_from_file_location!
|
59
|
+
|
60
|
+
config.include WithPopup::TestHelpers::Controller, type: :controller
|
57
61
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: with_popup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- itmammoth
|
@@ -168,14 +168,18 @@ files:
|
|
168
168
|
- Rakefile
|
169
169
|
- app/assets/javascripts/with_popup.js
|
170
170
|
- lib/with_popup.rb
|
171
|
-
- lib/with_popup/
|
171
|
+
- lib/with_popup/controllers.rb
|
172
|
+
- lib/with_popup/controllers/action_controller.rb
|
172
173
|
- lib/with_popup/engine.rb
|
173
174
|
- lib/with_popup/helpers.rb
|
174
175
|
- lib/with_popup/helpers/form_helper.rb
|
175
176
|
- lib/with_popup/helpers/form_tag_helper.rb
|
176
177
|
- lib/with_popup/helpers/util.rb
|
177
178
|
- lib/with_popup/rack.rb
|
179
|
+
- lib/with_popup/test_helpers.rb
|
180
|
+
- lib/with_popup/test_helpers/controller.rb
|
178
181
|
- lib/with_popup/version.rb
|
182
|
+
- spec/controllers/test_helper_spec.rb
|
179
183
|
- spec/dummy/README.rdoc
|
180
184
|
- spec/dummy/Rakefile
|
181
185
|
- spec/dummy/app/assets/images/submit.jpg
|
@@ -910,6 +914,7 @@ signing_key:
|
|
910
914
|
specification_version: 4
|
911
915
|
summary: A rubygem for rails application to open and manage a popup window.
|
912
916
|
test_files:
|
917
|
+
- spec/controllers/test_helper_spec.rb
|
913
918
|
- spec/dummy/app/assets/images/submit.jpg
|
914
919
|
- spec/dummy/app/assets/javascripts/application.js
|
915
920
|
- spec/dummy/app/assets/stylesheets/application.css
|