File tree Expand file tree Collapse file tree 5 files changed +6
-23
lines changed
spec/integration/rails_4.1.1 Expand file tree Collapse file tree 5 files changed +6
-23
lines changed Original file line number Diff line number Diff line change @@ -46,3 +46,4 @@ group :development do
4646 end
4747end
4848
49+ gem 'rails-observers'
Original file line number Diff line number Diff line change 7474 bundler (>= 1.3.0 , < 2.0 )
7575 railties (= 4.1.1 )
7676 sprockets-rails (~> 2.0 )
77+ rails-observers (0.1.2 )
78+ activemodel (~> 4.0 )
7779 railties (4.1.1 )
7880 actionpack (= 4.1.1 )
7981 activesupport (= 4.1.1 )
@@ -125,6 +127,7 @@ DEPENDENCIES
125127 jbuilder (~> 2.0 )
126128 jquery-rails
127129 rails (= 4.1.1 )
130+ rails-observers
128131 sass-rails (~> 4.0.3 )
129132 sdoc (~> 0.4.0 )
130133 spring
Original file line number Diff line number Diff line change 1- # == Schema Information
2- #
3- # Table name: tasks
4- #
5- # id :integer not null, primary key
6- # content :string(255)
7- # status :integer
8- # created_at :datetime
9- # updated_at :datetime
10- #
11-
12-
131class Task < ActiveRecord ::Base
142 enum status : %w( normal active completed )
153end
Original file line number Diff line number Diff line change 1+ class TaskObserver < ActiveRecord ::Observer
2+ end
Original file line number Diff line number Diff line change 1- # == Schema Information
2- #
3- # Table name: tasks
4- #
5- # id :integer not null, primary key
6- # content :string(255)
7- # status :integer
8- # created_at :datetime
9- # updated_at :datetime
10- #
11-
121require 'test_helper'
132
143class TaskTest < ActiveSupport ::TestCase
You can’t perform that action at this time.
0 commit comments