Permalink
Browse files

Removed Evergreen.extensions, just use middlewares instead

  • Loading branch information...
1 parent ade7189 commit f3cba4d426d9d2e68eded45dd26a81a9d6c8e25c Jonas Nicklas and Kim Burgestrand committed Nov 2, 2011
Showing with 0 additions and 17 deletions.
  1. +0 −5 lib/evergreen.rb
  2. +0 −2 lib/evergreen/application.rb
  3. +0 −5 spec/evergreen_spec.rb
  4. +0 −5 spec/spec_helper.rb
View
5 lib/evergreen.rb
@@ -21,11 +21,6 @@ def configure
yield self
end
- def extensions(&block)
- @extensions = block if block
- @extensions
- end
-
def use_defaults!
configure do |config|
config.driver = :selenium
View
2 lib/evergreen/application.rb
@@ -8,8 +8,6 @@ def application
def build_application
Rack::Builder.new do
- instance_eval(&Evergreen.extensions) if Evergreen.extensions
-
map "/" do
app = Class.new(Sinatra::Base).tap do |app|
app.reset!
View
5 spec/evergreen_spec.rb
@@ -44,9 +44,4 @@
page.should have_content('Fail')
end
end
-
- it "should add extensions to Evergreen" do
- visit('/awesome')
- page.should have_content('Totally awesome')
- end
end
View
5 spec/spec_helper.rb
@@ -10,11 +10,6 @@
TEST_DRIVER = :webkit
Evergreen.root = File.expand_path('suite1', File.dirname(__FILE__))
-Evergreen.extensions do
- map "/awesome" do
- run lambda { |env| [200, {'Content-Type' => 'text/html'}, ["<html><body>Totally awesome</body></html>"]]}
- end
-end
Capybara.app = Evergreen.application
Capybara.default_driver = TEST_DRIVER

0 comments on commit f3cba4d

Please sign in to comment.