act_as_backdrop 0.0.3 → 0.0.4

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.
@@ -6,18 +6,25 @@ class SomethingTest < ActiveSupport::TestCase
6
6
 
7
7
  model = Something.new
8
8
  model.save
9
+ model.run_callbacks(:commit)
9
10
 
10
11
  model.title = 'abc'
11
12
  model.save
13
+ model.run_callbacks(:commit)
14
+
15
+ assert_equal 'abc', File.read('check.txt')
12
16
 
13
17
  model.title = 'def'
14
18
  model.save
19
+ model.run_callbacks(:commit)
20
+
21
+ assert_equal 'def', File.read('check.txt')
15
22
 
16
- model.title = 'something better'
23
+ model.title = 'something inside your model'
17
24
  model.save
25
+ model.run_callbacks(:commit)
18
26
 
19
- model.reload
20
- assert_equal 'def', model.check
27
+ assert_equal 'something inside your model', File.read('check.txt')
21
28
 
22
29
  end
23
30
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: act_as_backdrop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grigoriy Dobryakov
@@ -57,7 +57,6 @@ files:
57
57
  - test/act_as_backdrop_test.rb
58
58
  - test/backdrop_test.rb
59
59
  - test/dummy/Gemfile
60
- - test/dummy/Gemfile.lock
61
60
  - test/dummy/README.rdoc
62
61
  - test/dummy/Rakefile
63
62
  - test/dummy/app/assets/javascripts/application.js
@@ -134,7 +133,6 @@ test_files:
134
133
  - test/dummy/log/test.log
135
134
  - test/dummy/README.rdoc
136
135
  - test/dummy/config.ru
137
- - test/dummy/Gemfile.lock
138
136
  - test/dummy/app/controllers/application_controller.rb
139
137
  - test/dummy/app/views/layouts/application.html.erb
140
138
  - test/dummy/app/helpers/application_helper.rb
@@ -1,105 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- act_as_backdrop (0.0.1)
5
- rails (~> 4.2.1)
6
- actionmailer (4.2.5)
7
- actionpack (= 4.2.5)
8
- actionview (= 4.2.5)
9
- activejob (= 4.2.5)
10
- mail (~> 2.5, >= 2.5.4)
11
- rails-dom-testing (~> 1.0, >= 1.0.5)
12
- actionpack (4.2.5)
13
- actionview (= 4.2.5)
14
- activesupport (= 4.2.5)
15
- rack (~> 1.6)
16
- rack-test (~> 0.6.2)
17
- rails-dom-testing (~> 1.0, >= 1.0.5)
18
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
19
- actionview (4.2.5)
20
- activesupport (= 4.2.5)
21
- builder (~> 3.1)
22
- erubis (~> 2.7.0)
23
- rails-dom-testing (~> 1.0, >= 1.0.5)
24
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
25
- activejob (4.2.5)
26
- activesupport (= 4.2.5)
27
- globalid (>= 0.3.0)
28
- activemodel (4.2.5)
29
- activesupport (= 4.2.5)
30
- builder (~> 3.1)
31
- activerecord (4.2.5)
32
- activemodel (= 4.2.5)
33
- activesupport (= 4.2.5)
34
- arel (~> 6.0)
35
- activesupport (4.2.5)
36
- i18n (~> 0.7)
37
- json (~> 1.7, >= 1.7.7)
38
- minitest (~> 5.1)
39
- thread_safe (~> 0.3, >= 0.3.4)
40
- tzinfo (~> 1.1)
41
- arel (6.0.3)
42
- builder (3.2.2)
43
- concurrent-ruby (1.0.0)
44
- erubis (2.7.0)
45
- globalid (0.3.6)
46
- activesupport (>= 4.1.0)
47
- i18n (0.7.0)
48
- json (1.8.3)
49
- loofah (2.0.3)
50
- nokogiri (>= 1.5.9)
51
- mail (2.6.3)
52
- mime-types (>= 1.16, < 3)
53
- mime-types (2.99)
54
- mini_portile2 (2.0.0)
55
- minitest (5.8.3)
56
- nokogiri (1.6.7.1)
57
- mini_portile2 (~> 2.0.0.rc2)
58
- rack (1.6.4)
59
- rack-test (0.6.3)
60
- rack (>= 1.0)
61
- rails (4.2.5)
62
- actionmailer (= 4.2.5)
63
- actionpack (= 4.2.5)
64
- actionview (= 4.2.5)
65
- activejob (= 4.2.5)
66
- activemodel (= 4.2.5)
67
- activerecord (= 4.2.5)
68
- activesupport (= 4.2.5)
69
- bundler (>= 1.3.0, < 2.0)
70
- railties (= 4.2.5)
71
- sprockets-rails
72
- rails-deprecated_sanitizer (1.0.3)
73
- activesupport (>= 4.2.0.alpha)
74
- rails-dom-testing (1.0.7)
75
- activesupport (>= 4.2.0.beta, < 5.0)
76
- nokogiri (~> 1.6.0)
77
- rails-deprecated_sanitizer (>= 1.0.1)
78
- rails-html-sanitizer (1.0.2)
79
- loofah (~> 2.0)
80
- railties (4.2.5)
81
- actionpack (= 4.2.5)
82
- activesupport (= 4.2.5)
83
- rake (>= 0.8.7)
84
- thor (>= 0.18.1, < 2.0)
85
- rake (10.4.2)
86
- sprockets (3.5.2)
87
- concurrent-ruby (~> 1.0)
88
- rack (> 1, < 3)
89
- sprockets-rails (3.0.0)
90
- actionpack (>= 4.0)
91
- activesupport (>= 4.0)
92
- sprockets (>= 3.0.0)
93
- sqlite3 (1.3.11)
94
- thor (0.19.1)
95
- thread_safe (0.3.5)
96
- tzinfo (1.2.2)
97
- thread_safe (~> 0.1)
98
-
99
- PLATFORMS
100
- ruby
101
-
102
- DEPENDENCIES
103
- act_as_backdrop
104
- rails
105
- sqlite3