rspec_request_helpers 0.3.1 → 0.3.2

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
2
  SHA1:
3
- metadata.gz: df37b87f66b3ef889f13740b480e298796e25852
4
- data.tar.gz: 433b0d8aadc7b780d40769bb20a65d1e655fc6e5
3
+ metadata.gz: f06e38a3cbd6caac785e84b1df502e7150350925
4
+ data.tar.gz: b1dd35e25ebc837110fdac4af2fce28873a3d561
5
5
  SHA512:
6
- metadata.gz: 64a21a5ff793253311fd48553212fb2294e83d9d28e91e501f9ccda8be84468bb50a33a8f654051c8d609777e88d1f8fb424078b7edd05f5963f207cbb0858c1
7
- data.tar.gz: fdc1960151f2996dfda25a34d386c3b640f7b268d1a2d15c2118a6e2a28fcbc29a360e78af753da35dee21a334b8688c5e465a3ac7873c1658b0997d2a596909
6
+ metadata.gz: 825be90b4f66e4fd48f717df79cba2a4fc46c381ae828c362892c9611645c36200f0aa298afcb7516c5890fe2f8d83df1eab32284c09285c8a3e66754b42f0b9
7
+ data.tar.gz: 59104db5de15210b9e361b13d387d8a19c1ce964edef8fc01ce1917576352c8ef4616a61eb74740c227ce6e4ae4c44171fd6da82806c89059d3b9f9cc11593c5
@@ -23,8 +23,12 @@ module Rspec
23
23
  @path_params.each do |param|
24
24
  @path.sub!(param, '#{' + param[1..-1] + '}')
25
25
  end
26
- empty_directory Pathname.new('spec/requests').join(*class_path)
27
- template 'action_request_spec.rb', "spec/requests/#{file_path}_spec.rb"
26
+ if behavior == :revoke
27
+ template 'action_request_spec.rb', "spec/requests/#{file_path}_spec.rb"
28
+ elsif behavior == :invoke
29
+ empty_directory Pathname.new('spec/requests').join(*class_path)
30
+ template 'action_request_spec.rb', "spec/requests/#{file_path}_spec.rb"
31
+ end
28
32
  end
29
33
  end
30
34
  end
@@ -1,3 +1,3 @@
1
1
  module RspecRequestHelpers
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_request_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrii Baran