Skip to content

Commit

Permalink
Fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Jul 10, 2023
1 parent a96de32 commit a1a31ac
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions spec/locale_tree/traversal_spec.rb
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe I18n::Tasks::Data::Tree::Traversal do
RSpec.describe I18n::Tasks::Data::Tree::Traversal do # rubocop:disable RSpec/FilePath
delegate :i18n_task, to: :TestCodebase

describe '#grep_keys' do
it 'returns Siblings' do
expect(i18n_task.data['en'].grep_keys(/key/)).to be_a(I18n::Tasks::Data::Tree::Siblings)
end
end

# --- setup ---
before(:each) do
before do
TestCodebase.setup fixtures_contents
end

after do
TestCodebase.teardown
end

describe '#grep_keys' do
it 'returns Siblings' do
expect(i18n_task.data['en'].grep_keys(/key/)).to be_a(I18n::Tasks::Data::Tree::Siblings)
end
end
end

0 comments on commit a1a31ac

Please sign in to comment.