File: disable_some_tests.patch

package info (click to toggle)
ruby-enumerize 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 352 kB
  • ctags: 244
  • sloc: ruby: 2,848; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 727 bytes parent folder | download | duplicates (2)
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
Description: disable tests using simple_form or formtastic gems
 Here we just prevent these gems to be loaded. The actual exclusion happens in
 debian/ruby-tests.rake.
Author: Cédric Boutillier <boutil@debian.org>
Forwarded: not-needed
Last-Update: 2015-08-12

--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -2,6 +2,7 @@
 require 'minitest/spec'
 require 'active_support/core_ext/kernel/reporting'
 require 'active_model'
+require 'action_view'
 require 'rails'
 begin
   require 'mongoid'
@@ -11,11 +12,6 @@
 module RailsAdmin
 end
 
-require 'simple_form'
-SimpleForm.setup {}
-
-require 'formtastic'
-
 module EnumerizeTest
   class Application < Rails::Application
     config.active_support.deprecation = :stderr