Skip to content

Commit

Permalink
use **options in spec for newer Ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinDKelley committed Aug 18, 2021
1 parent 32bb3a7 commit 57daf28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/lib/listen/record_spec.rb
Expand Up @@ -3,7 +3,7 @@
RSpec.describe Listen::Record do
let(:dir) { instance_double(Pathname, to_s: '/dir') }
let(:silencer_options) { { ignore!: [/\A\.ignored/] } }
let(:silencer) { Listen::Silencer.new(silencer_options) }
let(:silencer) { Listen::Silencer.new(**silencer_options) }
let(:record) { Listen::Record.new(dir, silencer) }

def dir_entries_for(hash)
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/listen/silencer_spec.rb
Expand Up @@ -6,7 +6,7 @@

RSpec.describe Listen::Silencer do
let(:options) { {} }
subject { described_class.new(options) }
subject { described_class.new(**options) }

describe '#silenced?' do
it { should accept(:file, Pathname('some_dir').join("some_file.rb")) }
Expand Down

0 comments on commit 57daf28

Please sign in to comment.