Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed Evergreen.extensions, just use middlewares instead

  • Loading branch information...
commit f3cba4d426d9d2e68eded45dd26a81a9d6c8e25c 1 parent ade7189
Jonas Nicklas and Kim Burgestrand authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.