test/test_helper.rb in roar-rails-0.1.6 vs test/test_helper.rb in roar-rails-1.0.0

- old
+ new

@@ -5,5 +5,14 @@ require "dummy/config/environment" require "rails/test_help" # adds stuff like @routes, etc. require "roar/rails/test_case" Singer = Struct.new(:name) + +# Rails.backtrace_cleaner.remove_silencers! + +Mime::Type.register 'application/hal+json', :hal + +ActionController.add_renderer :hal do |js, options| + self.content_type ||= Mime::HAL + js.is_a?(String) ? js : js.to_json +end