with_popup 0.0.7 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/spec/examples.txt CHANGED
@@ -1,26 +1,30 @@
1
1
  example_id | status | run_time |
2
2
  ---------------------------------------------------------- | ------ | --------------- |
3
- ./spec/features/form_helper_request_spec.rb[1:1:1:1:1] | passed | 0.35892 seconds |
4
- ./spec/features/form_helper_request_spec.rb[1:1:2:1:1] | passed | 0.37597 seconds |
5
- ./spec/features/form_helper_request_spec.rb[1:2:1:1:1] | passed | 0.35579 seconds |
6
- ./spec/features/form_helper_request_spec.rb[1:2:2:1:1] | passed | 0.36278 seconds |
7
- ./spec/features/form_helper_request_spec.rb[1:3:1:1:1] | passed | 0.36336 seconds |
8
- ./spec/features/form_helper_request_spec.rb[1:3:2:1:1] | passed | 0.36575 seconds |
9
- ./spec/features/form_helper_request_spec.rb[1:4:1:1:1] | passed | 0.36313 seconds |
10
- ./spec/features/form_helper_request_spec.rb[1:4:2:1:1] | passed | 0.37393 seconds |
11
- ./spec/features/form_tag_helper_request_spec.rb[1:1:1:1:1] | passed | 0.37839 seconds |
12
- ./spec/features/form_tag_helper_request_spec.rb[1:1:2:1:1] | passed | 0.43263 seconds |
13
- ./spec/features/form_tag_helper_request_spec.rb[1:2:1:1:1] | passed | 0.38794 seconds |
14
- ./spec/features/form_tag_helper_request_spec.rb[1:2:2:1:1] | passed | 0.37972 seconds |
15
- ./spec/features/form_tag_helper_request_spec.rb[1:3:1:1:1] | passed | 0.3588 seconds |
16
- ./spec/features/form_tag_helper_request_spec.rb[1:3:2:1:1] | passed | 0.37231 seconds |
17
- ./spec/features/form_tag_helper_request_spec.rb[1:4:1:1:1] | passed | 0.35866 seconds |
18
- ./spec/features/form_tag_helper_request_spec.rb[1:4:2:1:1] | passed | 0.36741 seconds |
19
- ./spec/features/form_tag_helper_request_spec.rb[1:5:1:1:1] | passed | 2.93 seconds |
20
- ./spec/features/form_tag_helper_request_spec.rb[1:5:2:1:1] | passed | 0.38158 seconds |
21
- ./spec/features/form_tag_helper_request_spec.rb[1:6:1:1:1] | passed | 0.39603 seconds |
22
- ./spec/features/form_tag_helper_request_spec.rb[1:6:2:1:1] | passed | 0.37323 seconds |
23
- ./spec/features/form_tag_helper_request_spec.rb[1:7:1:1] | passed | 0.37976 seconds |
24
- ./spec/features/form_tag_helper_request_spec.rb[1:8:1:1] | passed | 0.37511 seconds |
25
- ./spec/features/form_tag_helper_request_spec.rb[1:9:1:1] | passed | 0.38978 seconds |
26
- ./spec/features/form_tag_helper_request_spec.rb[1:10:1:1] | passed | 0.35902 seconds |
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.7
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/controller.rb
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
@@ -1,9 +0,0 @@
1
- module WithPopup::Controller
2
- def close_popup
3
- session[:_with_popup] = :close
4
- end
5
-
6
- def reload_popup(path)
7
- session[:_with_popup] = path
8
- end
9
- end