Skip to content

Commit

Permalink
rename Plist to PLIST to comply with new formatters
Browse files Browse the repository at this point in the history
  • Loading branch information
igrigorik committed Jun 24, 2011
1 parent ae6ee39 commit 1427917
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/goliath/rack/formatters/plist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {})
Expand Down
6 changes: 3 additions & 3 deletions spec/unit/rack/formatters/plist_spec.rb
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1427917

Please sign in to comment.