public
Rubygem
Description: Makes tests easy on the fingers and the eyes
Homepage: http://www.thoughtbot.com/projects/shoulda
Clone URL: git://github.com/thoughtbot/shoulda.git
limited the formats to *.rb files

git-svn-id: https://svn.thoughtbot.com/plugins/shoulda/trunk@243 
7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
tsaleh (author)
Tue Nov 13 13:26:52 -0800 2007
commit  ce44c7340ca04f6b202997479388a756c7ecb4e4
tree    83d3ee1625015251d77f703f0385286f4abe4470
parent  4b39f0076ab920d7657452737a2759d4782645e4
...
37
38
39
40
 
41
42
43
...
37
38
39
 
40
41
42
43
0
@@ -37,7 +37,7 @@ module ThoughtBot # :nodoc:
0
       # controller responds restfully to a variety of requested formats.
0
       module ClassMethods
0
         # Formats tested by #should_be_restful. Defaults to [:html, :xml]
0
- VALID_FORMATS = Dir.glob(File.join(File.dirname(__FILE__), 'formats', '*')).map { |f| File.basename(f, '.rb') }.map(&:to_sym) # :doc:
0
+ VALID_FORMATS = Dir.glob(File.join(File.dirname(__FILE__), 'formats', '*.rb')).map { |f| File.basename(f, '.rb') }.map(&:to_sym) # :doc:
0
         VALID_FORMATS.each {|f| require "shoulda/controller_tests/formats/#{f}.rb"}
0
 
0
         # Actions tested by #should_be_restful

Comments

    No one has commented yet.