Skip to content

Commit

Permalink
test(Misc): initial specs
Browse files Browse the repository at this point in the history
  • Loading branch information
toastercup committed Aug 11, 2018
1 parent fee8c0a commit 43ae3c2
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 3 deletions.
1 change: 0 additions & 1 deletion cortex.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Gem::Specification.new do |s|

# Cortex-specific
s.add_dependency 'cortex-exceptions', '= 0.0.4'
#s.add_dependency 'cortex-plugins-core' # TODO: this is an awkward dependency, but necessary until we clean up hardcoded references to Plugins::Core

# Service Layer
s.add_dependency 'dry-types', '~> 0.13.2'
Expand Down
6 changes: 6 additions & 0 deletions spec/controllers/cortex/application_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require 'rails_helper'

module Cortex
RSpec.describe ApplicationController, type: :controller do
end
end
8 changes: 6 additions & 2 deletions spec/dummy/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ DEVISE_SECRET=
#
# Asset Host Configuration
#

# CDN for Asset Uploads, i.e. https://assets.cortexcms.org
HOST_ALIAS=

# CDN for Application Assets, i.e. assets.cortexcms.org
ASSET_HOST_URL=

# S3
Expand Down Expand Up @@ -65,7 +69,7 @@ QUALTRICS_ID=
#
# Database Configuration
#
DATABASE_NAME=cortex_starter_test
#DATABASE_NAME=
#DATABASE_USERNAME=
#DATABASE_PASSWORD=
#DATABASE_HOST=
Expand All @@ -74,7 +78,7 @@ DATABASE_NAME=cortex_starter_test
#
# Caching
#
REDIS_NAMESPACE=cortex_test
REDIS_NAMESPACE=cortex_starter_dev
CACHE_URL=redis://localhost:6379/0/cache
SESSION_STORE_URL=redis://localhost:6379/0/cache

Expand Down
6 changes: 6 additions & 0 deletions spec/helpers/cortex/application_helper_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require 'rails_helper'

module Cortex
RSpec.describe ApplicationHelper, type: :helper do
end
end
6 changes: 6 additions & 0 deletions spec/jobs/cortex/application_job_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require 'rails_helper'

module Cortex
RSpec.describe ApplicationJob, type: :job do
end
end
6 changes: 6 additions & 0 deletions spec/mailers/cortex/application_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require "rails_helper"

module Cortex
RSpec.describe ApplicationMailer, type: :mailer do
end
end
5 changes: 5 additions & 0 deletions spec/mailers/previews/cortex/application_preview.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module Cortex
# Preview all emails at http://localhost:3000/rails/mailers/application
class ApplicationPreview < ActionMailer::Preview
end
end
6 changes: 6 additions & 0 deletions spec/models/cortex/application_record_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require 'rails_helper'

module Cortex
RSpec.describe ApplicationRecord, type: :model do
end
end

0 comments on commit 43ae3c2

Please sign in to comment.