Skip to content

Commit 2c9dd7e

Browse files
committed
Add a dummy observer and remove annotations
1 parent c831573 commit 2c9dd7e

File tree

5 files changed

+6
-23
lines changed

5 files changed

+6
-23
lines changed

spec/integration/rails_4.1.1/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@ group :development do
4646
end
4747
end
4848

49+
gem 'rails-observers'

spec/integration/rails_4.1.1/Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ GEM
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
Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
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-
131
class Task < ActiveRecord::Base
142
enum status: %w(normal active completed)
153
end
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class TaskObserver < ActiveRecord::Observer
2+
end

spec/integration/rails_4.1.1/test/models/task_test.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
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-
121
require 'test_helper'
132

143
class TaskTest < ActiveSupport::TestCase

0 commit comments

Comments
 (0)