-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update with latest from hyku_knapsack
Ran `git merge prime/main` and resolved merge conflicts
- Loading branch information
1 parent
d50af95
commit 6003b66
Showing
7 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,8 @@ jobs: | |
uses: scientist-softserv/actions/.github/workflows/[email protected] | ||
with: | ||
confdir: '/app/samvera/hyrax-webapp/solr/conf' | ||
webTarget: hyku-web | ||
workerTarget: hyku-worker | ||
rspec_cmd: "cd .. && gem install semaphore_test_boosters && bundle && rspec_booster --job $CI_NODE_INDEX/$CI_NODE_TOTAL" | ||
|
||
lint: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# this file is needed to pass the pipeline since there aren't enough specs to run | ||
# that would generate this file. Without this file, the Move Test action step fails. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
RSpec.describe Hyku::Application do | ||
let(:rails_root) { Rails.root } | ||
let(:hyku_knapsack_root) { HykuKnapsack::Engine.root } | ||
|
||
describe '.theme_view_path_roots' do | ||
it 'includes the Rails root and the Hyku Knapsack root' do | ||
expect(described_class.theme_view_path_roots).to eq([rails_root.to_s, hyku_knapsack_root.to_s]) | ||
end | ||
end | ||
|
||
describe '.path_for' do | ||
context 'when relative path does not exist in the knapsack' do | ||
it 'returns the fall back path' do | ||
expect(described_class.path_for('foo')).to eq(rails_root.join('foo').to_s) | ||
end | ||
end | ||
|
||
context 'when relative path exists in the knapsack' do | ||
it 'returns the relative path' do | ||
path = 'app/models/hyku_knapsack/application_record.rb' | ||
expect(described_class.path_for(path)).to eq(hyku_knapsack_root.join(path).to_s) | ||
end | ||
end | ||
end | ||
end |