From 875070bde081a5f5d8ed5d51bef16520b4ca0868 Mon Sep 17 00:00:00 2001 From: Zachary Scott Date: Mon, 19 Aug 2013 14:44:07 -0400 Subject: [PATCH] add an actual failing test for #71 --- sinatra-contrib/spec/respond_with_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sinatra-contrib/spec/respond_with_spec.rb b/sinatra-contrib/spec/respond_with_spec.rb index 0c6e8ef5..4706b3a2 100644 --- a/sinatra-contrib/spec/respond_with_spec.rb +++ b/sinatra-contrib/spec/respond_with_spec.rb @@ -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