rspec-arguments 0.1.0 → 0.2.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/README.md +1 -1
- data/lib/rspec/arguments/arguments.rb +1 -3
- data/lib/rspec/arguments/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a9734a99060988523b68983e2a89a42762fac4a
|
4
|
+
data.tar.gz: d88e0295ca5d8cf86888638a06ca74fd86d91944
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdacb2bb3b9479269e72783743dc1847940af250a7ac3c9abda506ebd2a62696aff6436911afa08536274d96b96e9af36945f04a77499e31301c6930c7cba48d
|
7
|
+
data.tar.gz: '09655f8595a80ce6880709bfdabb1afc9079993f8ef5a86a19d35931da594ef66d27b372c7641d92cc2cf2ee575f54220ad3f59d458244efd93b81c6f7cd49b7'
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# RSpec Arguments [](https://circleci.com/gh/wealthsimple/rspec-arguments)
|
1
|
+
# RSpec Arguments [](https://circleci.com/gh/wealthsimple/rspec-arguments) [](https://rubygems.org/gems/rspec-arguments)
|
2
2
|
|
3
3
|
Provide arguments to the implicit RSpec `subject`.
|
4
4
|
Also, call instance and class methods implicitly.
|
@@ -82,9 +82,7 @@ module RSpec
|
|
82
82
|
# recursively search ascendants' metadata
|
83
83
|
# for the correct method under testing.
|
84
84
|
method_name = search_method_name(self.class.metadata, key)
|
85
|
-
method_name.sub
|
86
|
-
method_name.sub!('.', '')
|
87
|
-
method_name.to_sym
|
85
|
+
method_name.sub('#', '').sub('.', '').to_sym
|
88
86
|
end
|
89
87
|
|
90
88
|
def search_method_name(metadata, key)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-arguments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marco Costa
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-support
|