diff options
Diffstat (limited to 'spec/helpers/admin/background_migrations_helper_spec.rb')
-rw-r--r-- | spec/helpers/admin/background_migrations_helper_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/helpers/admin/background_migrations_helper_spec.rb b/spec/helpers/admin/background_migrations_helper_spec.rb index 8880a00755b..9c1bb0b9c55 100644 --- a/spec/helpers/admin/background_migrations_helper_spec.rb +++ b/spec/helpers/admin/background_migrations_helper_spec.rb @@ -3,22 +3,22 @@ require "spec_helper" RSpec.describe Admin::BackgroundMigrationsHelper do - describe '#batched_migration_status_badge_class_name' do + describe '#batched_migration_status_badge_variant' do using RSpec::Parameterized::TableSyntax - where(:status, :class_name) do - :active | 'badge-info' - :paused | 'badge-warning' - :failed | 'badge-danger' - :finished | 'badge-success' + where(:status, :variant) do + :active | :info + :paused | :warning + :failed | :danger + :finished | :success end - subject { helper.batched_migration_status_badge_class_name(migration) } + subject { helper.batched_migration_status_badge_variant(migration) } with_them do let(:migration) { build(:batched_background_migration, status: status) } - it { is_expected.to eq(class_name) } + it { is_expected.to eq(variant) } end end |