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:
parent
de29b41d56
commit
875070bde0
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue