record_history 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.rvmrc +1 -1
- data/lib/generators/record_history/templates/alter_record_histories_add_transaction_id.rb +1 -1
- data/lib/record_history.rb +3 -11
- data/lib/record_history/has_record_history.rb +24 -23
- data/lib/record_history/record_history_model.rb +27 -27
- data/lib/record_history/version.rb +1 -1
- data/spec/db/schema.rb +3 -1
- data/spec/factories/some_datas.rb +2 -2
- data/spec/record_history_spec.rb +21 -31
- data/spec/spec_helper.rb +4 -6
- metadata +4 -7
- data/spec/debug.log +0 -2559
- data/spec/factories/record_history_models.rb +0 -11
@@ -1,11 +0,0 @@
|
|
1
|
-
FactoryGirl.define do
|
2
|
-
factory :record_history_model do
|
3
|
-
item_type { 'SomeData' }
|
4
|
-
item_id { Factory.create(:some_data).id }
|
5
|
-
attr_name { Faker::Lorem.words(1).first }
|
6
|
-
old_value_dump { Marshal.dump(Faker::Base.numerify('##')) }
|
7
|
-
new_value_dump { Marshal.dump(Faker::Base.numerify('##')) }
|
8
|
-
author_type { 'User'}
|
9
|
-
author_id { Factory.create(:user) }
|
10
|
-
end
|
11
|
-
end
|