Skip to content
Browse files

add shared examples

  • Loading branch information...
1 parent 0ed957e commit da9a3496972895f635b12374fb5a9dd208251150 @rkh committed Jun 6, 2010
Showing with 2 additions and 1 deletion.
  1. +1 −0 spec/sinatra/more_server_spec.rb
  2. +1 −1 spec/spec_helper.rb
View
1 spec/sinatra/more_server_spec.rb
@@ -2,6 +2,7 @@
describe Sinatra::MoreServer do
before { app :MoreServer }
+ it_should_behave_like 'sinatra'
describe "additional server" do
it("should offer unicorn") { app.server.should include("unicorn") }
View
2 spec/spec_helper.rb
@@ -1,2 +1,2 @@
-require "sinatra/rspec"
+require "sinatra/rspec/shared"
require "sinatra/more_server"

0 comments on commit da9a349

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