Skip to content

Commit

Permalink
Try another fix for the db.spec
Browse files Browse the repository at this point in the history
It seems that 'apply_migration' is called a second time from somewhere
else. This could be either during spec setup or rollback. But as the
intention of this test is to check the logger configuration, this
'expect' can be removed.
  • Loading branch information
philippthun authored and johha committed Jul 2, 2024
1 parent fb16f6f commit c99cb38
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions spec/tasks/db_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
it 'logs to configured sinks + STDOUT' do
Rake::Task['db:migrate'].invoke

expect(db_migrator).to have_received(:apply_migrations)

# From test config:
expect(Steno.config.sinks).to include(an_instance_of(Steno::Sink::Syslog))
expect(Steno.config.sinks).to include(an_instance_of(Steno::Sink::IO).and(satisfy { |sink| sink.instance_variable_get(:@io).is_a?(File) }))
Expand Down

0 comments on commit c99cb38

Please sign in to comment.