summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-22 18:29:12 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-22 18:29:12 +0000
commit43503dad4856354839d6cb06a73ec7b0ffa5ef3c (patch)
tree9ada3c2bdf83bee6d8aab1d16acf9d8a121b1f64 /test/test_helper.rb
parent9645cb83f2320742f2e7c9a5a0d45fef7c8d43c4 (diff)
downloadredmine-43503dad4856354839d6cb06a73ec7b0ffa5ef3c.tar.gz
redmine-43503dad4856354839d6cb06a73ec7b0ffa5ef3c.zip
Removed unused shoulda macros.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11256 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 792b8e904..1f65c11ce 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -209,34 +209,6 @@ class ActiveSupport::TestCase
def mail_body(mail)
mail.parts.first.body.encoded
end
-
- # Shoulda macros
- def self.should_render_404
- should_respond_with :not_found
- should_render_template 'common/error'
- end
-
- def self.should_have_before_filter(expected_method, options = {})
- should_have_filter('before', expected_method, options)
- end
-
- def self.should_have_after_filter(expected_method, options = {})
- should_have_filter('after', expected_method, options)
- end
-
- def self.should_have_filter(filter_type, expected_method, options)
- description = "have #{filter_type}_filter :#{expected_method}"
- description << " with #{options.inspect}" unless options.empty?
-
- should description do
- klass = "action_controller/filters/#{filter_type}_filter".classify.constantize
- expected = klass.new(:filter, expected_method.to_sym, options)
- assert_equal 1, @controller.class.filter_chain.select { |filter|
- filter.method == expected.method && filter.kind == expected.kind &&
- filter.options == expected.options && filter.class == expected.class
- }.size
- end
- end
end
module Redmine