aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2013-12-19 16:30:16 +0900
committerAkira Matsuda <ronnie@dio.jp>2013-12-19 16:30:16 +0900
commit4e68765cf65a435ef706d875c51bfcfcbd6fef3a (patch)
tree4fa4d94161d9835a69df7dad842896931f209050
parent86dcb555886ea575bce947554d28121861369838 (diff)
downloadrails-4e68765cf65a435ef706d875c51bfcfcbd6fef3a.tar.gz
rails-4e68765cf65a435ef706d875c51bfcfcbd6fef3a.tar.bz2
rails-4e68765cf65a435ef706d875c51bfcfcbd6fef3a.zip
Unused classes in AS tests
-rw-r--r--activesupport/test/callbacks_test.rb21
-rw-r--r--activesupport/test/core_ext/module_test.rb6
-rw-r--r--activesupport/test/fixtures/custom.rb2
-rw-r--r--activesupport/test/testing/constant_lookup_test.rb1
4 files changed, 0 insertions, 30 deletions
diff --git a/activesupport/test/callbacks_test.rb b/activesupport/test/callbacks_test.rb
index f8e2ce22fa..32c2dfdfc0 100644
--- a/activesupport/test/callbacks_test.rb
+++ b/activesupport/test/callbacks_test.rb
@@ -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
diff --git a/activesupport/test/core_ext/module_test.rb b/activesupport/test/core_ext/module_test.rb
index 283b13ff8b..5b99fae411 100644
--- a/activesupport/test/core_ext/module_test.rb
+++ b/activesupport/test/core_ext/module_test.rb
@@ -12,12 +12,6 @@ class Ab
Constant3 = "Goodbye World"
end
-module Xy
- class Bc
- include One
- end
-end
-
module Yz
module Zy
class Cd
diff --git a/activesupport/test/fixtures/custom.rb b/activesupport/test/fixtures/custom.rb
deleted file mode 100644
index 0eefce0c25..0000000000
--- a/activesupport/test/fixtures/custom.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-class Custom
-end \ No newline at end of file
diff --git a/activesupport/test/testing/constant_lookup_test.rb b/activesupport/test/testing/constant_lookup_test.rb
index aca2951450..71a9561189 100644
--- a/activesupport/test/testing/constant_lookup_test.rb
+++ b/activesupport/test/testing/constant_lookup_test.rb
@@ -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