rspec-varys 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec/varys/rspec_generator.rb +1 -1
- data/lib/rspec/varys/version.rb +1 -1
- data/lib/rspec/varys.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: 8add44ff8c8ddece4c482995cb65d1798a102b60
|
4
|
+
data.tar.gz: 9ca6bc274c7969f3f4f22d53e937f1ee85404ffd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a0a48e1e970fdb09f7be35c3116d5b421b9a3ddfe3e4069e4aec1aa21e2aaece36b2ca234273122286f8db2435a90b46df162bc436dfd29b24ee5fc46b897a8
|
7
|
+
data.tar.gz: 95d2d16154f099c218adfe0c6f5c75792411c0b5adfdb9ef4e11179b1b8472b8c42e2a4c95f7bdfc740317bceb06eb2928959cbd580c95f4afc9f1ffdb32ef31
|
@@ -41,7 +41,7 @@ end
|
|
41
41
|
# Attempt to recreate the source-code to represent this argument in the setup
|
42
42
|
# for our generated spec.
|
43
43
|
def self.serialize(arg)
|
44
|
-
if %w(Array Hash Float Fixnum String).include? arg.class.name
|
44
|
+
if %w(Array Hash Float Fixnum String NilClass TrueClass FalseClass).include? arg.class.name
|
45
45
|
arg.pretty_inspect.chop
|
46
46
|
else
|
47
47
|
guess_constructor arg
|
data/lib/rspec/varys/version.rb
CHANGED
data/lib/rspec/varys.rb
CHANGED
@@ -188,7 +188,7 @@ module RSpec::Varys
|
|
188
188
|
# Attempt to recreate the source-code to represent this argument in the setup
|
189
189
|
# for our generated spec.
|
190
190
|
def self.serialize(arg)
|
191
|
-
if %w(Array Hash Float Fixnum String).include? arg.class.name
|
191
|
+
if %w(Array Hash Float Fixnum String NilClass TrueClass FalseClass).include? arg.class.name
|
192
192
|
arg.pretty_inspect.chop
|
193
193
|
else
|
194
194
|
guess_constructor arg
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-varys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ritchie Young
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|