1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= <lunar@debian.org>
Date: Fri, 11 Apr 2014 10:01:12 +0200
Subject: Drop tests using Sinatra from Rakefile
They need files shipped with Sinatra source to work.
---
Rakefile | 21 ---------------------
1 file changed, 21 deletions(-)
diff --git a/Rakefile b/Rakefile
index 9c1da5f..6727820 100644
--- a/Rakefile
+++ b/Rakefile
@@ -46,27 +46,6 @@ namespace 'test' do
t.test_files = FileList['test/rails/test/test_*.rb']
t.verbose = true
end
-
- begin
- require 'rubygems'
- require 'sinatra'
- spec = Gem::Specification.find_by_name('sinatra')
- Rake::TestTask.new('sinatra') do |t|
- # FIXME: Rename deprecated attribute
- file = "#{spec.gem_dir}/test/slim_test.rb"
- code = File.read(file)
- code.gsub!('attr_wrapper', 'attr_quote')
- File.open(file, 'w') {|out| out.write(code) }
-
- # Run Slim integration test in Sinatra
- t.test_files = FileList[file]
- t.verbose = true
- end
- rescue LoadError
- task :sinatra do
- abort 'Sinatra is not available'
- end
- end
end
begin
|