bob-builder 0.1.1 → 0.1.2
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/lib/bob/meta_builder.rb +5 -6
- data/lib/bob/version.rb +1 -1
- data/test/dummy/app/models/item.rb +3 -0
- data/test/dummy/app/models/user.rb +6 -0
- data/test/dummy/db/migrate/20150624183929_create_items.rb +9 -0
- data/test/dummy/db/schema.rb +8 -1
- data/test/dummy/lib/builders/user_builder.rb +14 -0
- data/test/dummy/log/development.log +165 -0
- data/test/dummy/log/test.log +4538 -0
- data/test/dummy/log/testing.log +0 -0
- data/test/dummy/test/fixtures/items.yml +11 -0
- data/test/dummy/test/models/item_test.rb +7 -0
- data/test/meta_build_test.rb +7 -0
- metadata +13 -3
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
|
2
|
+
|
|
3
|
+
# This model initially had no columns defined. If you add columns to the
|
|
4
|
+
# model remove the '{}' from the fixture names and add the columns immediately
|
|
5
|
+
# below each fixture, per the syntax in the comments below
|
|
6
|
+
#
|
|
7
|
+
one: {}
|
|
8
|
+
# column: value
|
|
9
|
+
#
|
|
10
|
+
two: {}
|
|
11
|
+
# column: value
|
data/test/meta_build_test.rb
CHANGED
|
@@ -37,4 +37,11 @@ class MetaBuildTest < ActiveSupport::TestCase
|
|
|
37
37
|
assert custom_user.valid?, msg: "User is not valid"
|
|
38
38
|
assert custom_user.persisted?, msg: "User hasn't been persisted"
|
|
39
39
|
end
|
|
40
|
+
|
|
41
|
+
test "random quantities to builders" do
|
|
42
|
+
random_user = UserBuilder.randomUser!
|
|
43
|
+
|
|
44
|
+
assert random_user.items.any?
|
|
45
|
+
assert_operator random_user.items.to_a.count, :<=, 5
|
|
46
|
+
end
|
|
40
47
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bob-builder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Maximiliano Felice
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-06-
|
|
11
|
+
date: 2015-06-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -48,6 +48,7 @@ files:
|
|
|
48
48
|
- test/dummy/app/controllers/application_controller.rb
|
|
49
49
|
- test/dummy/app/helpers/application_helper.rb
|
|
50
50
|
- test/dummy/app/models/comment.rb
|
|
51
|
+
- test/dummy/app/models/item.rb
|
|
51
52
|
- test/dummy/app/models/user.rb
|
|
52
53
|
- test/dummy/app/views/layouts/application.html.erb
|
|
53
54
|
- test/dummy/bin/bundle
|
|
@@ -74,18 +75,22 @@ files:
|
|
|
74
75
|
- test/dummy/config/secrets.yml
|
|
75
76
|
- test/dummy/db/migrate/20150616050944_create_users.rb
|
|
76
77
|
- test/dummy/db/migrate/20150616062934_create_comments.rb
|
|
78
|
+
- test/dummy/db/migrate/20150624183929_create_items.rb
|
|
77
79
|
- test/dummy/db/schema.rb
|
|
78
80
|
- test/dummy/db/test.sqlite3
|
|
79
81
|
- test/dummy/lib/builders/user_builder.rb
|
|
80
82
|
- test/dummy/log/development.log
|
|
81
83
|
- test/dummy/log/test.log
|
|
84
|
+
- test/dummy/log/testing.log
|
|
82
85
|
- test/dummy/public/404.html
|
|
83
86
|
- test/dummy/public/422.html
|
|
84
87
|
- test/dummy/public/500.html
|
|
85
88
|
- test/dummy/public/favicon.ico
|
|
86
89
|
- test/dummy/test/fixtures/comments.yml
|
|
90
|
+
- test/dummy/test/fixtures/items.yml
|
|
87
91
|
- test/dummy/test/fixtures/users.yml
|
|
88
92
|
- test/dummy/test/models/comment_test.rb
|
|
93
|
+
- test/dummy/test/models/item_test.rb
|
|
89
94
|
- test/dummy/test/models/user_test.rb
|
|
90
95
|
- test/for_each_test.rb
|
|
91
96
|
- test/meta_build_test.rb
|
|
@@ -110,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
110
115
|
version: '0'
|
|
111
116
|
requirements: []
|
|
112
117
|
rubyforge_project:
|
|
113
|
-
rubygems_version: 2.4.
|
|
118
|
+
rubygems_version: 2.4.8
|
|
114
119
|
signing_key:
|
|
115
120
|
specification_version: 4
|
|
116
121
|
summary: Bob is a Builder Rails tool for generating data.
|
|
@@ -120,8 +125,10 @@ test_files:
|
|
|
120
125
|
- test/meta_build_test.rb
|
|
121
126
|
- test/dummy/test/models/comment_test.rb
|
|
122
127
|
- test/dummy/test/models/user_test.rb
|
|
128
|
+
- test/dummy/test/models/item_test.rb
|
|
123
129
|
- test/dummy/test/fixtures/comments.yml
|
|
124
130
|
- test/dummy/test/fixtures/users.yml
|
|
131
|
+
- test/dummy/test/fixtures/items.yml
|
|
125
132
|
- test/dummy/bin/rake
|
|
126
133
|
- test/dummy/bin/rails
|
|
127
134
|
- test/dummy/bin/bundle
|
|
@@ -132,6 +139,7 @@ test_files:
|
|
|
132
139
|
- test/dummy/public/404.html
|
|
133
140
|
- test/dummy/public/500.html
|
|
134
141
|
- test/dummy/log/test.log
|
|
142
|
+
- test/dummy/log/testing.log
|
|
135
143
|
- test/dummy/log/development.log
|
|
136
144
|
- test/dummy/lib/builders/user_builder.rb
|
|
137
145
|
- test/dummy/app/assets/stylesheets/application.css
|
|
@@ -140,9 +148,11 @@ test_files:
|
|
|
140
148
|
- test/dummy/app/views/layouts/application.html.erb
|
|
141
149
|
- test/dummy/app/models/user.rb
|
|
142
150
|
- test/dummy/app/models/comment.rb
|
|
151
|
+
- test/dummy/app/models/item.rb
|
|
143
152
|
- test/dummy/app/helpers/application_helper.rb
|
|
144
153
|
- test/dummy/db/schema.rb
|
|
145
154
|
- test/dummy/db/migrate/20150616050944_create_users.rb
|
|
155
|
+
- test/dummy/db/migrate/20150624183929_create_items.rb
|
|
146
156
|
- test/dummy/db/migrate/20150616062934_create_comments.rb
|
|
147
157
|
- test/dummy/db/test.sqlite3
|
|
148
158
|
- test/dummy/config/boot.rb
|