a_r_mocker 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/a_r_mocker-0.0.2.gem +0 -0
- data/lib/a_r_mocker/model.rb +1 -1
- data/lib/a_r_mocker/models.rb +1 -2
- data/lib/a_r_mocker/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf89bab765b3d4d108e12fb931d1a42d0f4ddc99
|
4
|
+
data.tar.gz: 38956fc8689fede3eef8d6c2535869ba394ed0b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 766cbcdda966add9073c5aa95bac43dbd09e48d381536c4c76b418c7abefde247fe39566df782ed98f4c7af97c6494e340da01861037468c53c56ae57a67701d
|
7
|
+
data.tar.gz: 5ad8409ad12c2accdad54524ea62bb1bed5f894086cd8cd817ec46bc815b1eef59002b36d004cefba446e4d99dee2dc91de34b9a7ea535ac831468d558ef55b0
|
Binary file
|
data/lib/a_r_mocker/model.rb
CHANGED
data/lib/a_r_mocker/models.rb
CHANGED
@@ -5,11 +5,10 @@ module ARMocker
|
|
5
5
|
include Enumerable
|
6
6
|
|
7
7
|
# @param count [Integer] the number of models to be generated
|
8
|
-
# @param persisted [Boolean] whether the models will act as though they
|
9
8
|
# have persisted
|
10
9
|
# @param attributes [Hash] attributes to be applied to every model
|
11
10
|
def initialize(count, attributes = {})
|
12
|
-
@members = Array.new(count, ARMocker::Model.new(attributes.merge(persisted: attributes.
|
11
|
+
@members = Array.new(count, ARMocker::Model.new(attributes.merge(persisted: attributes.slice(:_persisted))))
|
13
12
|
end
|
14
13
|
|
15
14
|
def self.create(count, attributes = {})
|
data/lib/a_r_mocker/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: a_r_mocker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Spiel
|
@@ -67,6 +67,7 @@ files:
|
|
67
67
|
- README.md
|
68
68
|
- Rakefile
|
69
69
|
- a_r_mocker-0.0.1.gem
|
70
|
+
- a_r_mocker-0.0.2.gem
|
70
71
|
- a_r_mocker.gemspec
|
71
72
|
- bin/console
|
72
73
|
- bin/setup
|