From a6b73a20fc7bc9c32a42689c2b01916fb0f97e80 Mon Sep 17 00:00:00 2001 From: Mojca Lorber Date: Fri, 3 Jul 2020 13:18:30 +0200 Subject: [PATCH] Fix tests again --- .../matchers/be_valid_repository_table_state.rb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/spec/support/matchers/be_valid_repository_table_state.rb b/spec/support/matchers/be_valid_repository_table_state.rb index 166244ad5..af6da11ac 100644 --- a/spec/support/matchers/be_valid_repository_table_state.rb +++ b/spec/support/matchers/be_valid_repository_table_state.rb @@ -9,7 +9,7 @@ RSpec::Matchers.define :be_valid_repository_table_state do expect(state).to be_an_instance_of Hash expect(state).to include( - 'time', 'order', 'start', 'length', 'search', 'columns', 'ColReorder' + 'time', 'order', 'start', 'length', 'columns', 'ColReorder' ) expect(state['time']).to be_an_instance_of Integer @@ -55,15 +55,6 @@ RSpec::Matchers.define :be_valid_repository_table_state do # Check that the ordering column exists in columns expect(col_indexes).to include(state['order'][0][0]) - expect(state['search']).to be_an_instance_of Hash - expect(state['search']).to include( - 'regex', 'smart', 'search', 'caseInsensitive' - ) - expect(state['search']['regex']).to eq(true).or eq(false) - expect(state['search']['smart']).to eq(true).or eq(false) - expect(state['search']['caseInsensitive']).to eq(true).or eq(false) - expect(state['search']['search']).to be_an_instance_of String - expect(state['ColReorder']).to be_an_instance_of Array expect(state['ColReorder'].length).to eq cols_length