Skip to content
Browse files

run shared sinatra specs on big band itself (read: all extensions tog…

…ether in an app)
  • Loading branch information...
1 parent 4b97e4a commit 1e2a89f351bf81ddf94aa4b132a9dd525f5dcbd0 @rkh committed Jun 7, 2010
Showing with 6 additions and 1 deletion.
  1. +5 −0 spec/sinatra/big_band_spec.rb
  2. +1 −1 spec/spec_helper.rb
View
5 spec/sinatra/big_band_spec.rb
@@ -12,6 +12,11 @@ def example_app(options = {})
@example_app ||= set_example_app options
end
+ describe 'sinatra behavior' do
+ before { app set_example_app }
+ it_should_behave_like 'sinatra'
+ end
+
describe "standard extensions" do
def extension; Sinatra.const_get @ext_name end
[:AdvancedRoutes, :Compass, :ConfigFile, :MoreServer, :Namespace, :Sugar, :DefaultCharset].each do |ext_name|
View
2 spec/spec_helper.rb
@@ -1,3 +1,3 @@
-require "sinatra/rspec"
+require "sinatra/rspec/shared"
require "sinatra/big_band"
require "sinatra/default_charset"

0 comments on commit 1e2a89f

Please sign in to comment.
Something went wrong with that request. Please try again.