Skip to content

Commit e3a798c

Browse files
committed
Use Combustion gem to run tests
1 parent 5b81aed commit e3a798c

File tree

17 files changed

+88
-39
lines changed

17 files changed

+88
-39
lines changed

.gitignore

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@
1010
/coverage
1111
/tmp
1212

13-
# Ignore sqlite db file
14-
/ajax_datatables_rails
15-
1613
# RVM files
1714
/.ruby-version
1815

1916
# Gem files
2017
/*.gem
18+
19+
# Ignore dummy app files
20+
spec/dummy/db/*.sqlite3
21+
spec/dummy/db/*.sqlite3-journal
22+
spec/dummy/log/*.log
23+
spec/dummy/tmp/

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ source 'https://rubygems.org'
44

55
gemspec
66

7-
gem 'appraisal', git: 'https://github.com/thoughtbot/appraisal.git'
7+
gem 'appraisal', git: 'https://github.com/n-rodriguez/appraisal.git', branch: 'wip/combustion'

ajax-datatables-rails.gemspec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,24 @@ Gem::Specification.new do |s|
2323

2424
s.files = `git ls-files`.split("\n")
2525

26+
s.add_runtime_dependency 'rails', '>= 5.2'
2627
s.add_runtime_dependency 'zeitwerk'
2728

2829
s.add_development_dependency 'activerecord-oracle_enhanced-adapter'
2930
s.add_development_dependency 'appraisal'
31+
s.add_development_dependency 'combustion', '~> 1.3'
3032
s.add_development_dependency 'database_cleaner'
3133
s.add_development_dependency 'factory_bot'
3234
s.add_development_dependency 'faker'
3335
s.add_development_dependency 'generator_spec'
3436
s.add_development_dependency 'guard-rspec'
3537
s.add_development_dependency 'pg'
38+
s.add_development_dependency 'puma'
3639
s.add_development_dependency 'pry'
37-
s.add_development_dependency 'rails', '>= 5.2'
3840
s.add_development_dependency 'rake'
3941
s.add_development_dependency 'rspec'
4042
s.add_development_dependency 'rspec-retry'
4143
s.add_development_dependency 'rubocop'
4244
s.add_development_dependency 'simplecov'
45+
s.add_development_dependency 'sqlite3', '~> 1.4.0'
4346
end

bin/rackup

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
#
5+
# This file was generated by Bundler.
6+
#
7+
# The application 'rackup' is installed as part of a gem, and
8+
# this file is here to facilitate running it.
9+
#
10+
11+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12+
13+
bundle_binstub = File.expand_path("bundle", __dir__)
14+
15+
if File.file?(bundle_binstub)
16+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17+
load(bundle_binstub)
18+
else
19+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
21+
end
22+
end
23+
24+
require "rubygems"
25+
require "bundler/setup"
26+
27+
load Gem.bin_path("rack", "rackup")

config.ru

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# frozen_string_literal: true
2+
3+
Bundler.require :default, :development
4+
5+
Combustion.path = 'spec/dummy'
6+
Combustion.initialize! :all
7+
run Combustion::Application

gemfiles/rails_5.2.6.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source "https://rubygems.org"
44

5-
gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git"
5+
gem "appraisal", git: "https://github.com/n-rodriguez/appraisal.git", branch: "wip/combustion"
66
gem "rails", "5.2.6"
77

88
install_if -> { ENV["DB_ADAPTER"] == "sqlite3" } do

gemfiles/rails_6.0.4.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source "https://rubygems.org"
44

5-
gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git"
5+
gem "appraisal", git: "https://github.com/n-rodriguez/appraisal.git", branch: "wip/combustion"
66
gem "rails", "6.0.4"
77

88
install_if -> { ENV["DB_ADAPTER"] == "sqlite3" } do

gemfiles/rails_6.1.4.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source "https://rubygems.org"
44

5-
gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git"
5+
gem "appraisal", git: "https://github.com/n-rodriguez/appraisal.git", branch: "wip/combustion"
66
gem "rails", "6.1.4"
77

88
install_if -> { ENV["DB_ADAPTER"] == "sqlite3" } do

gemfiles/rails_7.0.1.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source "https://rubygems.org"
44

5-
gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git"
5+
gem "appraisal", git: "https://github.com/n-rodriguez/appraisal.git", branch: "wip/combustion"
66
gem "rails", "7.0.1"
77

88
install_if -> { ENV["DB_ADAPTER"] == "sqlite3" } do

spec/dummy/app/assets/config/manifest.js

Whitespace-only changes.

0 commit comments

Comments
 (0)