rspec-arguments 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa45770cbce05f67cb6327da20658a93390aa8fb
4
- data.tar.gz: c4cafadad2c0267ef4461eca12c9871c4192dea2
3
+ metadata.gz: 1a9734a99060988523b68983e2a89a42762fac4a
4
+ data.tar.gz: d88e0295ca5d8cf86888638a06ca74fd86d91944
5
5
  SHA512:
6
- metadata.gz: 150fe729c934b7ad59c3262ed15eb9664f4368476d8ba3a95badb2e691f66ef1c8770b3aef9ce80d8f8b44ea95d82a00fa2afa54e24c3f0cd6f76d5665c432b0
7
- data.tar.gz: 9a2214ef9770faa796659fd193137692953be0e7379d85e5045bd2b05a9ef261fef97e63dbe19d073d5411e6ebe571c5cb2be4262296aee30151c94241d9f944
6
+ metadata.gz: cdacb2bb3b9479269e72783743dc1847940af250a7ac3c9abda506ebd2a62696aff6436911afa08536274d96b96e9af36945f04a77499e31301c6930c7cba48d
7
+ data.tar.gz: '09655f8595a80ce6880709bfdabb1afc9079993f8ef5a86a19d35931da594ef66d27b372c7641d92cc2cf2ee575f54220ad3f59d458244efd93b81c6f7cd49b7'
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # RSpec Arguments [![CircleCI](https://circleci.com/gh/wealthsimple/rspec-arguments.svg?style=svg)](https://circleci.com/gh/wealthsimple/rspec-arguments)
1
+ # RSpec Arguments [![CircleCI](https://circleci.com/gh/wealthsimple/rspec-arguments.svg?style=svg)](https://circleci.com/gh/wealthsimple/rspec-arguments) [![Gem](https://img.shields.io/gem/v/rspec-arguments.svg)](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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  module Arguments
5
- VERSION = '0.1.0'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
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.1.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-05 00:00:00.000000000 Z
11
+ date: 2018-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-support