Permalink
Browse files

add an actual failing test for #71

  • Loading branch information...
zzak committed Aug 19, 2013
1 parent 693deb9 commit 35df1d229bc7c3a66e8d3640380e812313d3a123
Showing with 4 additions and 2 deletions.
  1. +4 −2 spec/respond_with_spec.rb
@@ -260,15 +260,17 @@ def object.to_pdf; "hi" end
describe "inherited" do
it "registers RespondWith in an inherited app" do
- app = respond_app do
+ app = Sinatra.new do
+ set :app_file, __FILE__
+ set :views, root + '/respond_with'
register Sinatra::RespondWith
get '/a' do
respond_with :json
end
end
- self.app = Sinatra::Base.new(app)
+ self.app = Sinatra.new(app)
req('/a', :json).should_not be_ok
end
end

0 comments on commit 35df1d2

Please sign in to comment.