diff options
Diffstat (limited to 'spec/models/integration_spec.rb')
-rw-r--r-- | spec/models/integration_spec.rb | 41 |
1 files changed, 3 insertions, 38 deletions
diff --git a/spec/models/integration_spec.rb b/spec/models/integration_spec.rb index 67e12092e1a..d7b69546de6 100644 --- a/spec/models/integration_spec.rb +++ b/spec/models/integration_spec.rb @@ -598,23 +598,7 @@ RSpec.describe Integration, feature_category: :integrations do end end - context 'recursive' do - before do - stub_feature_flags(use_traversal_ids: false) - end - - include_examples 'correct ancestor order' - end - - context 'linear' do - before do - stub_feature_flags(use_traversal_ids: true) - - sub_subgroup.reload # make sure traversal_ids are reloaded - end - - include_examples 'correct ancestor order' - end + include_examples 'correct ancestor order' end end end @@ -1206,11 +1190,10 @@ RSpec.describe Integration, feature_category: :integrations do end end - describe 'boolean_accessor' do + describe 'Checkbox field booleans' do let(:klass) do Class.new(Integration) do - prop_accessor :test_value - boolean_accessor :test_value + field :test_value, type: :checkbox end end @@ -1284,24 +1267,6 @@ RSpec.describe Integration, feature_category: :integrations do test_value?: be(false) ) end - - context 'when getter is not defined' do - let(:input) { true } - let(:klass) do - Class.new(Integration) do - boolean_accessor :test_value - end - end - - it 'defines a prop_accessor' do - expect(integration).to have_attributes( - test_value: true, - test_value?: true - ) - - expect(integration.properties['test_value']).to be(true) - end - end end describe '#attributes' do |