Skip to content

Commit

Permalink
Make tests succeed
Browse files Browse the repository at this point in the history
  • Loading branch information
tramuntanal committed Jun 16, 2023
1 parent 4acf508 commit be6fb5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ group :development do
gem 'faker', '~> 2.14'
gem 'letter_opener_web', '~> 1.3'
gem 'listen', '~> 3.1'
gem 'spring'#, '~> 2.0'
gem 'spring-watcher-listen'#, '~> 2.0'
gem 'spring', '~> 4.0'
gem 'spring-watcher-listen', '~> 2.1'
gem 'web-console', '~> 3.5'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

RSpec.shared_examples 'has global setting' do |attr_name, attr_type|
it 'has attribute' do
attribute = global_settings.schema.attribute_set.find { |a| a.name == attr_name }
attribute = global_settings.attributes[attr_name]
expect(attribute).to be_present
expect(attribute.type).to eq(attr_type)
end
Expand All @@ -15,13 +15,13 @@
let!(:component_manifest) { Decidim.find_component_manifest :budgets }
let(:global_settings) { component_manifest.settings(:global) }

it_behaves_like 'has global setting', :supports_without_registration, Axiom::Types::Boolean
it_behaves_like 'has global setting', :supports_without_registration, :boolean
end

context 'proposals settings' do
let!(:component_manifest) { Decidim.find_component_manifest :proposals }
let(:global_settings) { component_manifest.settings(:global) }

it_behaves_like 'has global setting', :supports_without_registration, Axiom::Types::Boolean
it_behaves_like 'has global setting', :supports_without_registration, :boolean
end
end

0 comments on commit be6fb5c

Please sign in to comment.