Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
annotate
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
annotate
Commits
2c9dd7ec
Commit
2c9dd7ec
authored
Jun 16, 2014
by
cuong.tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a dummy observer and remove annotations
parent
c831573f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
23 deletions
+7
-23
Gemfile
spec/integration/rails_4.1.1/Gemfile
+1
-0
Gemfile.lock
spec/integration/rails_4.1.1/Gemfile.lock
+3
-0
task.rb
spec/integration/rails_4.1.1/app/models/task.rb
+0
-12
task_observer.rb
spec/integration/rails_4.1.1/app/models/task_observer.rb
+3
-0
task_test.rb
spec/integration/rails_4.1.1/test/models/task_test.rb
+0
-11
No files found.
spec/integration/rails_4.1.1/Gemfile
View file @
2c9dd7ec
...
@@ -46,3 +46,4 @@ group :development do
...
@@ -46,3 +46,4 @@ group :development do
end
end
end
end
gem
'rails-observers'
spec/integration/rails_4.1.1/Gemfile.lock
View file @
2c9dd7ec
...
@@ -74,6 +74,8 @@ GEM
...
@@ -74,6 +74,8 @@ GEM
bundler (>= 1.3.0, < 2.0)
bundler (>= 1.3.0, < 2.0)
railties (= 4.1.1)
railties (= 4.1.1)
sprockets-rails (~> 2.0)
sprockets-rails (~> 2.0)
rails-observers (0.1.2)
activemodel (~> 4.0)
railties (4.1.1)
railties (4.1.1)
actionpack (= 4.1.1)
actionpack (= 4.1.1)
activesupport (= 4.1.1)
activesupport (= 4.1.1)
...
@@ -125,6 +127,7 @@ DEPENDENCIES
...
@@ -125,6 +127,7 @@ DEPENDENCIES
jbuilder (~> 2.0)
jbuilder (~> 2.0)
jquery-rails
jquery-rails
rails (= 4.1.1)
rails (= 4.1.1)
rails-observers
sass-rails (~> 4.0.3)
sass-rails (~> 4.0.3)
sdoc (~> 0.4.0)
sdoc (~> 0.4.0)
spring
spring
...
...
spec/integration/rails_4.1.1/app/models/task.rb
View file @
2c9dd7ec
# == Schema Information
#
# Table name: tasks
#
# id :integer not null, primary key
# content :string(255)
# status :integer
# created_at :datetime
# updated_at :datetime
#
class
Task
<
ActiveRecord
::
Base
class
Task
<
ActiveRecord
::
Base
enum
status:
%w(normal active completed)
enum
status:
%w(normal active completed)
end
end
spec/integration/rails_4.1.1/app/models/task_observer.rb
0 → 100644
View file @
2c9dd7ec
class
TaskObserver
<
ActiveRecord
::
Observer
end
\ No newline at end of file
spec/integration/rails_4.1.1/test/models/task_test.rb
View file @
2c9dd7ec
# == Schema Information
#
# Table name: tasks
#
# id :integer not null, primary key
# content :string(255)
# status :integer
# created_at :datetime
# updated_at :datetime
#
require
'test_helper'
require
'test_helper'
class
TaskTest
<
ActiveSupport
::
TestCase
class
TaskTest
<
ActiveSupport
::
TestCase
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment