From 142791721525f1f255a6ce002fd152364a7817e1 Mon Sep 17 00:00:00 2001 From: Ilya Grigorik Date: Thu, 23 Jun 2011 20:04:42 +0300 Subject: [PATCH] rename Plist to PLIST to comply with new formatters --- lib/goliath/rack/formatters/plist.rb | 4 ++-- spec/unit/rack/formatters/plist_spec.rb | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/goliath/rack/formatters/plist.rb b/lib/goliath/rack/formatters/plist.rb index 84293b0f..28ce3a4a 100644 --- a/lib/goliath/rack/formatters/plist.rb +++ b/lib/goliath/rack/formatters/plist.rb @@ -4,8 +4,8 @@ module Formatters # A plist formatter. Pass in to_plist options as an option to the middleware # # @example - # use Goliath::Rack::Formatters::Plist, :convert_unknown_to_string => true - class Plist + # use Goliath::Rack::Formatters::PLIST, :convert_unknown_to_string => true + class PLIST include AsyncMiddleware def initialize(app, opts = {}) diff --git a/spec/unit/rack/formatters/plist_spec.rb b/spec/unit/rack/formatters/plist_spec.rb index 39c73c44..3c0069b8 100644 --- a/spec/unit/rack/formatters/plist_spec.rb +++ b/spec/unit/rack/formatters/plist_spec.rb @@ -1,7 +1,7 @@ require 'spec_helper' require 'goliath/rack/formatters/plist' -describe Goliath::Rack::Formatters::Plist do +describe Goliath::Rack::Formatters::PLIST do # this sucks, but I had install problems with nokogiri-plist # and I would rather not use an alternative library that requires libxml or rexml before(:all) do @@ -17,13 +17,13 @@ class Object end it 'accepts an app' do - lambda { Goliath::Rack::Formatters::Plist.new('my app') }.should_not raise_error + lambda { Goliath::Rack::Formatters::PLIST.new('my app') }.should_not raise_error end describe 'with a formatter' do before(:each) do @app = mock('app').as_null_object - @m = Goliath::Rack::Formatters::Plist.new(@app) + @m = Goliath::Rack::Formatters::PLIST.new(@app) end it 'formats the body into plist if content-type is plist' do