1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

add an actual failing test for #71

This commit is contained in:
Zachary Scott 2013-08-19 14:44:07 -04:00
parent de29b41d56
commit 875070bde0

View file

@ -260,7 +260,9 @@ describe Sinatra::RespondWith do
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
@ -268,7 +270,7 @@ describe Sinatra::RespondWith do
end
end
self.app = Sinatra::Base.new(app)
self.app = Sinatra.new(app)
req('/a', :json).should_not be_ok
end
end