saharspec 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/saharspec/its/call.rb +1 -1
- data/lib/saharspec/its/map.rb +1 -0
- data/lib/saharspec/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: 320e576aeec4fa534c88058a6f93a617adffa1ef
|
4
|
+
data.tar.gz: 3bb428585c9c78cb5da1ee565fbf7cfd1e5d8ea4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67c2f6364699e87103723d7a679e07da03a4b53a6a7b57f43cc2c9bd93b496453d3ebfe4923440df94a7d6c61176308aba164254cbcea386e762864af483034a
|
7
|
+
data.tar.gz: c5cbcf7972f063618e66ee9feea61ba80005942cf38cbe9a4735e30cd2a603f623bc25d5bd19b4553cdb21d573f46cac371cbb722aa5fd0e25016e56b3138997
|
data/CHANGELOG.md
CHANGED
data/lib/saharspec/its/call.rb
CHANGED
@@ -25,7 +25,7 @@ module Saharspec
|
|
25
25
|
#
|
26
26
|
def its_call(*args, &block)
|
27
27
|
# rubocop:disable Lint/NestedMethodDefinition
|
28
|
-
describe('
|
28
|
+
describe("(#{args.map(&:inspect).join(', ')})") do
|
29
29
|
let(:__call_subject) do
|
30
30
|
warn 'No need to use its_call without arguments, just it {} will work' if args.empty?
|
31
31
|
-> { subject.call(*args) }
|
data/lib/saharspec/its/map.rb
CHANGED
@@ -32,6 +32,7 @@ module Saharspec
|
|
32
32
|
#
|
33
33
|
def its_map(attribute, *options, &block) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
|
34
34
|
# rubocop:disable Lint/NestedMethodDefinition
|
35
|
+
# TODO: better desciption for different cases
|
35
36
|
describe("map(&:#{attribute})") do
|
36
37
|
let(:__its_map_subject) do
|
37
38
|
if Array === attribute # rubocop:disable Style/CaseEquality
|
data/lib/saharspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saharspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Shepelev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|