Skip to content

Commit

Permalink
fix broken specs
Browse files Browse the repository at this point in the history
  • Loading branch information
did committed Aug 29, 2024
1 parent 3c21bca commit 82a6bc0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# config.favicon = ->(site) { ActionController::Base.helpers.vite_asset_path('favicon.png') }

# Primary color of the Editor
# config.primary_color = '#7E6EDB'
# config.primary_color = '#040712'

# Action triggered when clicking on the very bottom left button in the Editor
# NOTE: If you want the user to signed out from the Editor UI once the back action has been triggered,
Expand Down
6 changes: 3 additions & 3 deletions spec/helpers/maglev/editor_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

describe Maglev::EditorHelper do
let(:title) { nil }
let(:primary_color) { '#7E6EDB' }
let(:primary_color) { '#040712' }
let(:logo) { nil }
let(:site) { build(:site) }
let(:config) do
Expand Down Expand Up @@ -47,15 +47,15 @@ def maglev_site; end
subject { helper.editor_primary_hex_color }

it 'returns the primary color in a hexadecimal format' do
expect(subject).to eq '#7E6EDB'
expect(subject).to eq '#040712'
end
end

describe '#editor_primary_rgb_color' do
subject { helper.editor_primary_rgb_color }

it 'returns the primary color in RGB (array)' do
expect(subject).to eq [126, 110, 219]
expect(subject).to eq [4, 7, 18]
end

context 'short version of the primary color' do
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/maglev_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
end

it 'provides a default primary color' do
expect(described_class.config.primary_color).to eq('#7E6EDB')
expect(described_class.config.primary_color).to eq('#040712')
end
end

Expand Down
4 changes: 2 additions & 2 deletions spec/requests/maglev/editor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
context 'the editor is authenticated' do
before do
Maglev.configure do |config|
config.primary_color = '#7E6EDB'
config.primary_color = '#040712'
config.is_authenticated = ->(_site) { true }
end
end
Expand Down Expand Up @@ -68,7 +68,7 @@
before do
Maglev.configure do |config|
config.ui_locale = ui_locale
config.primary_color = '#7E6EDB'
config.primary_color = '#040712'
config.is_authenticated = ->(_site) { true }
end
end
Expand Down

0 comments on commit 82a6bc0

Please sign in to comment.