File: skip-test-railties-postgresql.patch

package info (click to toggle)
rails 2%3A7.2.2.1%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 43,352 kB
  • sloc: ruby: 349,799; javascript: 30,703; yacc: 46; sql: 43; sh: 29; makefile: 27
file content (40 lines) | stat: -rw-r--r-- 997 bytes parent folder | download
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
Description: Skip the railties test which needs postgresql instance
Author: Jongmin Kim <jmkim@pukyong.ac.kr>
Forwarded: not-needed
Last-Update: 2019-06-24
--- a/railties/test/application/bin_setup_test.rb
+++ b/railties/test/application/bin_setup_test.rb
@@ -27,6 +27,7 @@
       end
     end
 
+=begin
     def test_bin_setup_output
       Dir.chdir(app_path) do
         # SQLite3 seems to auto-create the database on first checkout.
@@ -62,5 +63,6 @@
         OUTPUT
       end
     end
+=end
   end
 end
--- a/railties/test/application/rake/dbs_test.rb
+++ b/railties/test/application/rake/dbs_test.rb
@@ -258,6 +258,8 @@
           end
         end
       end
+
+=begin
       test "db:create works when schema cache exists and database does not exist" do
         use_postgresql
 
@@ -271,6 +273,7 @@
           rails "db:drop" rescue nil
         end
       end
+=end
 
       test "db:drop failure because database does not exist" do
         output = rails("db:drop:_unsafe", "--trace")