1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Unused classes in AS tests

This commit is contained in:
Akira Matsuda 2013-12-19 16:30:16 +09:00
parent 86dcb55588
commit 4e68765cf6
4 changed files with 0 additions and 30 deletions

View file

@ -1,27 +1,6 @@
require 'abstract_unit'
module CallbacksTest
class Phone
include ActiveSupport::Callbacks
define_callbacks :save
set_callback :save, :before, :before_save1
set_callback :save, :after, :after_save1
def before_save1; self.history << :before; end
def after_save1; self.history << :after; end
def save
run_callbacks :save do
raise 'boom'
end
end
def history
@history ||= []
end
end
class Record
include ActiveSupport::Callbacks

View file

@ -12,12 +12,6 @@ class Ab
Constant3 = "Goodbye World"
end
module Xy
class Bc
include One
end
end
module Yz
module Zy
class Cd

View file

@ -1,2 +0,0 @@
class Custom
end

View file

@ -6,7 +6,6 @@ class Bar < Foo
def index; end
def self.index; end
end
class Baz < Bar; end
module FooBar; end
class ConstantLookupTest < ActiveSupport::TestCase