Skip to content

Commit 3b60430

Browse files
Adding combustion
1 parent 7fdb7f6 commit 3b60430

File tree

9 files changed

+29
-2
lines changed

9 files changed

+29
-2
lines changed

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ source 'https://rubygems.org'
33
gemspec
44

55
group :development, :test do
6+
gem 'actionpack'
67
gem 'byebug', platform: [:ruby], require: false
78
gem 'rubocop', require: false
9+
gem 'rspec-rails', '~> 3.6'
810
end
911

1012
# HACK: npm install on bundle

config.ru

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require 'rubygems'
2+
require 'bundler'
3+
4+
Bundler.require :default, :development
5+
6+
Combustion.initialize! :all
7+
run Combustion::Application

critical-path-css-rails.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
1414
gem.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
1515
gem.require_path = 'lib'
1616

17-
gem.add_development_dependency 'rspec', '~> 3.7'
17+
gem.add_development_dependency 'combustion', '~> 0.7.0'
1818

1919
gem.extensions = ['ext/npm/extconf.rb']
2020
end

spec/internal/config/database.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
test:
2+
adapter: sqlite3
3+
database: db/combustion_test.sqlite

spec/internal/config/routes.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Rails.application.routes.draw do
2+
#
3+
end

spec/internal/db/schema.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ActiveRecord::Schema.define do
2+
#
3+
end

spec/internal/log/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.log

spec/internal/public/favicon.ico

Whitespace-only changes.

spec/spec_helper.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
# frozen_string_literal: true
22

3-
require 'bundler/setup'
3+
require 'bundler'
44
require 'critical-path-css-rails'
55

66
require 'support/static_file_server'
77

8+
Bundler.require :default, :development
9+
10+
Combustion.initialize! :action_controller, :action_view
11+
12+
require 'rspec/rails'
13+
814
RSpec.configure do |config|
15+
config.use_transactional_fixtures = true
16+
917
# Enable flags like --only-failures and --next-failure
1018
config.example_status_persistence_file_path = '.rspec_status'
1119

0 commit comments

Comments
 (0)