Skip to content

Commit 730e457

Browse files
committed
Working on tests
1 parent 98d75a4 commit 730e457

File tree

8 files changed

+175
-170
lines changed

8 files changed

+175
-170
lines changed

gemfiles/rails5.2.gemfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
source "https://rubygems.org"
1+
source 'https://rubygems.org'
22

3-
gem "activerecord", "~> 5.2.0"
4-
gem "sqlite3", "~> 1.3", ">= 1.3.6"
3+
gem 'activerecord', '~> 5.2.0'
4+
gem 'sqlite3', '~> 1.4.2'
55

6-
gemspec path: "../"
6+
gemspec path: '../'

gemfiles/rails5.2.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ DEPENDENCIES
4747
minitest-rg
4848
mocha
4949
rake
50-
sqlite3 (~> 1.3, >= 1.3.6)
50+
sqlite3 (~> 1.4.2)
5151

5252
BUNDLED WITH
5353
2.2.27

gemfiles/rails6.0.gemfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
source "https://rubygems.org"
1+
source 'https://rubygems.org'
22

3-
gem "activerecord", "~> 6.0.0"
4-
gem "sqlite3", "~> 1.4"
3+
gem 'activerecord', '~> 6.0.0'
4+
gem 'sqlite3', '~> 1.4.2'
55

6-
gemspec path: "../"
6+
gemspec path: '../'

gemfiles/rails6.0.gemfile.lock

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,24 @@ GEM
1919
tzinfo (~> 1.1)
2020
zeitwerk (~> 2.2, >= 2.2.2)
2121
bump (0.10.0)
22-
concurrent-ruby (1.1.9)
23-
i18n (1.8.10)
22+
concurrent-ruby (1.3.5)
23+
i18n (1.14.7)
2424
concurrent-ruby (~> 1.0)
25-
minitest (5.14.4)
26-
minitest-rg (5.2.0)
25+
minitest (5.25.5)
26+
minitest-rg (5.3.0)
2727
minitest (~> 5.0)
28-
mocha (1.13.0)
29-
rake (13.0.6)
30-
sqlite3 (1.4.2)
28+
mocha (2.7.1)
29+
ruby2_keywords (>= 0.0.5)
30+
rake (13.2.1)
31+
ruby2_keywords (0.0.5)
32+
sqlite3 (1.4.4)
3133
thread_safe (0.3.6)
32-
tzinfo (1.2.9)
34+
tzinfo (1.2.11)
3335
thread_safe (~> 0.1)
34-
zeitwerk (2.4.2)
36+
zeitwerk (2.6.18)
3537

3638
PLATFORMS
3739
ruby
38-
x86_64-darwin-19
39-
x86_64-darwin-20
40-
x86_64-linux
4140

4241
DEPENDENCIES
4342
activerecord (~> 6.0.0)
@@ -47,7 +46,7 @@ DEPENDENCIES
4746
minitest-rg
4847
mocha
4948
rake
50-
sqlite3 (~> 1.4)
49+
sqlite3 (~> 1.4.2)
5150

5251
BUNDLED WITH
53-
2.2.27
52+
2.1.4

gemfiles/rails6.1.gemfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
source "https://rubygems.org"
1+
source 'https://rubygems.org'
22

3-
gem "activerecord", "~> 6.1.0"
4-
gem "sqlite3", "~> 1.4"
3+
gem 'activerecord', '~> 6.1.0'
4+
gem 'sqlite3', '~> 1.4.2'
55

6-
gemspec path: "../"
6+
gemspec path: '../'

gemfiles/rails6.1.gemfile.lock

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,35 @@ PATH
77
GEM
88
remote: https://rubygems.org/
99
specs:
10-
activemodel (6.1.4.1)
11-
activesupport (= 6.1.4.1)
12-
activerecord (6.1.4.1)
13-
activemodel (= 6.1.4.1)
14-
activesupport (= 6.1.4.1)
15-
activesupport (6.1.4.1)
10+
activemodel (6.1.7.10)
11+
activesupport (= 6.1.7.10)
12+
activerecord (6.1.7.10)
13+
activemodel (= 6.1.7.10)
14+
activesupport (= 6.1.7.10)
15+
activesupport (6.1.7.10)
1616
concurrent-ruby (~> 1.0, >= 1.0.2)
1717
i18n (>= 1.6, < 2)
1818
minitest (>= 5.1)
1919
tzinfo (~> 2.0)
2020
zeitwerk (~> 2.3)
2121
bump (0.10.0)
22-
concurrent-ruby (1.1.9)
23-
i18n (1.8.10)
22+
concurrent-ruby (1.3.5)
23+
i18n (1.14.7)
2424
concurrent-ruby (~> 1.0)
25-
minitest (5.14.4)
26-
minitest-rg (5.2.0)
25+
minitest (5.25.5)
26+
minitest-rg (5.3.0)
2727
minitest (~> 5.0)
28-
mocha (1.13.0)
29-
rake (13.0.6)
30-
sqlite3 (1.4.2)
31-
tzinfo (2.0.4)
28+
mocha (2.7.1)
29+
ruby2_keywords (>= 0.0.5)
30+
rake (13.2.1)
31+
ruby2_keywords (0.0.5)
32+
sqlite3 (1.4.4)
33+
tzinfo (2.0.6)
3234
concurrent-ruby (~> 1.0)
33-
zeitwerk (2.4.2)
35+
zeitwerk (2.6.18)
3436

3537
PLATFORMS
3638
ruby
37-
x86_64-darwin-19
38-
x86_64-darwin-20
39-
x86_64-linux
4039

4140
DEPENDENCIES
4241
activerecord (~> 6.1.0)
@@ -46,7 +45,7 @@ DEPENDENCIES
4645
minitest-rg
4746
mocha
4847
rake
49-
sqlite3 (~> 1.4)
48+
sqlite3 (~> 1.4.2)
5049

5150
BUNDLED WITH
52-
2.2.27
51+
2.1.4

test/helper.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
require 'minitest/spec'
44
require 'minitest/rg'
55
require 'mocha/minitest'
6+
require 'logger'
67
require 'active_support/all'
78
require 'migration_tools'
9+
require File.expand_path('rails_mock', __dir__) if defined?(Rails)
810

911
MIGRATION_CLASS = if ActiveRecord::Migration.respond_to?(:[])
1012
rails_version = "#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}".to_f
@@ -13,8 +15,8 @@
1315
ActiveRecord::Migration
1416
end
1517

16-
dir = File.expand_path('../migrations', __FILE__)
18+
dir = File.expand_path('migrations', __dir__)
1719
ActiveRecord::Migrator.migrations_paths.replace([dir])
18-
Dir.glob(File.join(dir, '*.rb')).each {|f| require f}
20+
Dir.glob(File.join(dir, '*.rb')).each { |f| require f }
1921

2022
ActiveRecord::Migration.verbose = false

0 commit comments

Comments
 (0)