Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix failing compat test due to Delegator changes

Also, run compat tests with the default rake task.
  • Loading branch information...
commit 25b045625c0dc72312166a407903cac11e0cb06d 1 parent 1601047
@rtomayko rtomayko authored
Showing with 3 additions and 2 deletions.
  1. +1 −1  Rakefile
  2. +2 −1  compat/app_test.rb
View
2  Rakefile
@@ -2,7 +2,7 @@ require 'rake/clean'
require 'rake/testtask'
require 'fileutils'
-task :default => :test
+task :default => [:compat, :test]
task :spec => :test
# SPECS ===============================================================
View
3  compat/app_test.rb
@@ -8,7 +8,8 @@
specify "should put all DSL methods on (main)" do
object = Object.new
- Sinatra::Application::FORWARD_METHODS.each do |method|
+ methods = %w[get put post head delete configure template helpers set]
+ methods.each do |method|
object.private_methods.should.include(method)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.