diff --git a/spec/fixtures/cleanup-foreman-user-groups/foreman-answers-after.yaml b/spec/fixtures/cleanup-foreman-user-groups/foreman-answers-after.yaml deleted file mode 100644 index 47b06987..00000000 --- a/spec/fixtures/cleanup-foreman-user-groups/foreman-answers-after.yaml +++ /dev/null @@ -1,2 +0,0 @@ -foreman: - user_groups: [] diff --git a/spec/fixtures/cleanup-foreman-user-groups/foreman-answers-before.yaml b/spec/fixtures/cleanup-foreman-user-groups/foreman-answers-before.yaml deleted file mode 100644 index c1aa5592..00000000 --- a/spec/fixtures/cleanup-foreman-user-groups/foreman-answers-before.yaml +++ /dev/null @@ -1,2 +0,0 @@ -foreman: - user_groups: ['puppet'] diff --git a/spec/fixtures/cleanup-foreman-user-groups/katello-answers-after.yaml b/spec/fixtures/cleanup-foreman-user-groups/katello-answers-after.yaml deleted file mode 100644 index 47b06987..00000000 --- a/spec/fixtures/cleanup-foreman-user-groups/katello-answers-after.yaml +++ /dev/null @@ -1,2 +0,0 @@ -foreman: - user_groups: [] diff --git a/spec/fixtures/cleanup-foreman-user-groups/katello-answers-before.yaml b/spec/fixtures/cleanup-foreman-user-groups/katello-answers-before.yaml deleted file mode 100644 index c1aa5592..00000000 --- a/spec/fixtures/cleanup-foreman-user-groups/katello-answers-before.yaml +++ /dev/null @@ -1,2 +0,0 @@ -foreman: - user_groups: ['puppet'] diff --git a/spec/migration_spec.rb b/spec/migration_spec.rb index ac42b68f..4169023a 100644 --- a/spec/migration_spec.rb +++ b/spec/migration_spec.rb @@ -125,10 +125,9 @@ %w[foreman katello].each do |scenario_name| context "foreman drop puppet from user_groups" do - let(:answers_after) { load_fixture_yaml('cleanup-foreman-user-groups', "#{scenario_name}-answers-after.yaml") } let(:scenario) do { - :answers => load_fixture_yaml('cleanup-foreman-user-groups', "#{scenario_name}-answers-before.yaml"), + :answers => {'foreman' => {'user_groups' => ['puppet']}}, :config => load_config_yaml("#{scenario_name}.yaml"), :migrations => config_path("#{scenario_name}.migrations"), } @@ -138,7 +137,7 @@ it 'changes scenario answers' do _, after = migrator - expect(after).to include answers_after + expect(after).to include({'foreman' => {'user_groups' => []}}) end end end