Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
require "sinatra/rspec" | ||
require "sinatra/big_band" | ||
|
||
Sinatra::BigBand::Subproject.generate_meta_data! |