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:
parent
86dcb55588
commit
4e68765cf6
4 changed files with 0 additions and 30 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -12,12 +12,6 @@ class Ab
|
|||
Constant3 = "Goodbye World"
|
||||
end
|
||||
|
||||
module Xy
|
||||
class Bc
|
||||
include One
|
||||
end
|
||||
end
|
||||
|
||||
module Yz
|
||||
module Zy
|
||||
class Cd
|
||||
|
|
2
activesupport/test/fixtures/custom.rb
vendored
2
activesupport/test/fixtures/custom.rb
vendored
|
@ -1,2 +0,0 @@
|
|||
class Custom
|
||||
end
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue