Codebase list ruby-seed-fu / a943f6f
Refresh patches. Debian Janitor 1 year, 11 months ago
3 changed file(s) with 33 addition(s) and 23 deletion(s). Raw diff Collapse all Expand all
44 Bug-Debian: https://bugs.debian.org/918595
55 Forwarded: https://github.com/mbleigh/seed-fu/pull/137
66 Last-Update: 2019-08-29
7 --- a/spec/spec_helper.rb
8 +++ b/spec/spec_helper.rb
9 @@ -35,7 +35,13 @@
7 Index: ruby-seed-fu/spec/spec_helper.rb
8 ===================================================================
9 --- ruby-seed-fu.orig/spec/spec_helper.rb
10 +++ ruby-seed-fu/spec/spec_helper.rb
11 @@ -35,7 +35,13 @@ class SeededModel < ActiveRecord::Base
1012 attr_protected :first_name if self.respond_to?(:protected_attributes)
1113 attr_accessor :fail_to_save
1214
33 Last-Update: 2015-07-11
44 ---
55 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
6 --- a/spec/spec_helper.rb
7 +++ b/spec/spec_helper.rb
6 Index: ruby-seed-fu/spec/spec_helper.rb
7 ===================================================================
8 --- ruby-seed-fu.orig/spec/spec_helper.rb
9 +++ ruby-seed-fu/spec/spec_helper.rb
810 @@ -1,5 +1,5 @@
911 +require 'fileutils'
1012 require 'rubygems'
44 Author: Jongmin Kim <jmkim@pukyong.ac.kr>
55 Forwarded: https://github.com/mbleigh/seed-fu/pull/137
66 Last-Update: 2019-08-29
7 --- a/spec/runner_spec.rb
8 +++ b/spec/runner_spec.rb
9 @@ -4,21 +4,21 @@
7 Index: ruby-seed-fu/spec/runner_spec.rb
8 ===================================================================
9 --- ruby-seed-fu.orig/spec/runner_spec.rb
10 +++ ruby-seed-fu/spec/runner_spec.rb
11 @@ -4,21 +4,21 @@ describe SeedFu::Runner do
1012 it "should seed data from Ruby and gzipped Ruby files in the given fixtures directory" do
1113 SeedFu.seed(File.dirname(__FILE__) + '/fixtures')
1214
3436 + expect(SeededModel.count).to eq(3)
3537 end
3638 end
37 --- a/spec/seeder_spec.rb
38 +++ b/spec/seeder_spec.rb
39 @@ -20,12 +20,12 @@
39 Index: ruby-seed-fu/spec/seeder_spec.rb
40 ===================================================================
41 --- ruby-seed-fu.orig/spec/seeder_spec.rb
42 +++ ruby-seed-fu/spec/seeder_spec.rb
43 @@ -20,12 +20,12 @@ describe SeedFu::Seeder do
4044 end
4145
4246 bob = SeededModel.find_by_id(-2)
5256 end
5357 end
5458
55 @@ -39,8 +39,8 @@
59 @@ -39,8 +39,8 @@ describe SeedFu::Seeder do
5660 end
5761
5862 bob = SeededModel.find_by_id(5)
6367 end
6468
6569 it "should be able to handle multiple constraints" do
66 @@ -50,7 +50,7 @@
70 @@ -50,7 +50,7 @@ describe SeedFu::Seeder do
6771 s.first_name = "Bob"
6872 end
6973
7276
7377 SeededModel.seed(:title, :login) do |s|
7478 s.login = "frank"
75 @@ -58,15 +58,15 @@
79 @@ -58,15 +58,15 @@ describe SeedFu::Seeder do
7680 s.first_name = "Frank"
7781 end
7882
9195 end
9296
9397 it "should be able to create models from an array of seed attributes" do
94 @@ -76,9 +76,9 @@
98 @@ -76,9 +76,9 @@ describe SeedFu::Seeder do
9599 {:login => "harry", :title => "Noble", :first_name => "Harry"}
96100 ])
97101
104108 end
105109
106110 it "should be able to create models from a list of seed attribute hashes at the end of the args" do
107 @@ -88,9 +88,9 @@
111 @@ -88,9 +88,9 @@ describe SeedFu::Seeder do
108112 {:login => "harry", :title => "Noble", :first_name => "Harry"}
109113 )
110114
117121 end
118122
119123 it "should update, not create, if constraints are met" do
120 @@ -111,8 +111,8 @@
124 @@ -111,8 +111,8 @@ describe SeedFu::Seeder do
121125 end
122126
123127 bob = SeededModel.find_by_id(1)
128132 end
129133
130134 it "should create but not update with seed_once" do
131 @@ -133,15 +133,15 @@
135 @@ -133,15 +133,15 @@ describe SeedFu::Seeder do
132136 end
133137
134138 bob = SeededModel.find_by_id(1)
147151 end
148152
149153 it "should require that all constraints are defined" do
150 --- a/spec/writer_spec.rb
151 +++ b/spec/writer_spec.rb
152 @@ -16,8 +16,8 @@
154 Index: ruby-seed-fu/spec/writer_spec.rb
155 ===================================================================
156 --- ruby-seed-fu.orig/spec/writer_spec.rb
157 +++ ruby-seed-fu/spec/writer_spec.rb
158 @@ -16,8 +16,8 @@ describe SeedFu::Writer do
153159 end
154160 load @file_name
155161
160166 end
161167
162168 it "should support chunking" do
163 @@ -28,8 +28,8 @@
169 @@ -28,8 +28,8 @@ describe SeedFu::Writer do
164170 end
165171 load @file_name
166172
171177 end
172178
173179 it "should support specifying the output to use 'seed_once' rather than 'seed'" do
174 @@ -40,6 +40,6 @@
180 @@ -40,6 +40,6 @@ describe SeedFu::Writer do
175181 end
176182 load @file_name
177183