Skip to content

Commit

Permalink
added specs
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Mar 26, 2010
1 parent a5e7dd5 commit 1599f64
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
36 changes: 36 additions & 0 deletions spec/sinatra/big_band_spec.rb
@@ -0,0 +1,36 @@
require File.expand_path(__FILE__ + "/../../spec_helper.rb")

describe Sinatra::BigBand do
before { @example_app = nil }

def set_example_app(*options)
@example_app = Class.new Sinatra::BigBand(*options)
end

def example_app
@example_app ||= set_example_app
end

describe "standard extensions" do
[:AdvancedRoutes, :Compass, :ConfigFile, :MoreServer, :Namespace, :Sugar].each do |ext_name|
describe ext_name do
before { @ext_name = ext_name }

def extension
pending
extension = Sinatra.const_get @ext_name
end

it "should be loaded" do
pending
Sinatra.should be_const_defined(ext_name)
end

it "should be set up" do
pending
example_app.should be_a(extension)
end
end
end
end
end
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
@@ -0,0 +1,4 @@
require "sinatra/rspec"
require "sinatra/big_band"

Sinatra::BigBand::Subproject.generate_meta_data!

0 comments on commit 1599f64

Please sign in to comment.