rails-controller-testing 1.0.2 → 1.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a2012bee519b01179696020eab76322fdf25e678
4
- data.tar.gz: e885d3464fc5a81efc0332b294b9a28585172fd5
2
+ SHA256:
3
+ metadata.gz: f3b7f00e40a23b64e92f285090dd9eb15f74ab287eb9de79543ac7f9bcf50a22
4
+ data.tar.gz: 2d7b21a3d4059c9a54dca28d41a3099f2602ba56a31992165789b19327e63280
5
5
  SHA512:
6
- metadata.gz: 9b218e233f42c9787bcdf2584392d81d31d13ff96c3316538955a4bf4ea2ddb9ce0bd37a2d0372dc723aa536994097a9cde23ce6b52b999f2877d78464b0e788
7
- data.tar.gz: e14f775742d2183d822a51a70ffc410a22fcd764c761583167b62c93c2216be269c464f44112a16fb69e006ed10d4ff8b3ac4e40a93c4d7e82a923cb99d94a5f
6
+ metadata.gz: cc232a50faa3d928a3676bd2faf9dbf72f2502fdc5b58e07a943174df628c0a1c947e2a02991073904478df62f17a3a00eb272ccfac396f640350aeae13a128f
7
+ data.tar.gz: 859db9129b58f6e3cb6de2b651218edcfdd2c7fdeb578e66d0877722c2b1ff767479a2b451ae842918420f09a92831e66ec1b4d45880c9590356c4d5b8dff54f
@@ -1,12 +1,13 @@
1
+ require 'action_pack'
2
+
1
3
  module Rails
2
4
  module Controller
3
5
  module Testing
4
6
  module Integration
5
- %w(
6
- get post patch put head delete xml_http_request
7
- xhr get_via_redirect post_via_redirect
8
- ).each do |method|
7
+ http_verbs = %w(get post patch put head delete get_via_redirect post_via_redirect)
8
+ http_verbs.push('xhr', 'xml_http_request') if ActionPack.version < Gem::Version.new('5.1')
9
9
 
10
+ http_verbs.each do |method|
10
11
  define_method(method) do |*args|
11
12
  reset_template_assertion
12
13
  super(*args)
@@ -1,7 +1,7 @@
1
1
  module Rails
2
2
  module Controller
3
3
  module Testing
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.4"
5
5
  end
6
6
  end
7
7
  end