Skip to content

Commit

Permalink
Tidy up the spec template indentation, use let(:unused_keys).
Browse files Browse the repository at this point in the history
  • Loading branch information
nybblr committed Nov 10, 2014
1 parent 2488816 commit 5abeb36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions spec/i18n_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

it 'does not have missing keys' do
expect(missing_keys).to be_empty,
"Missing #{missing_keys.leaves.count} i18n keys, run `i18n-tasks missing' to show them"
"Missing #{missing_keys.leaves.count} i18n keys, run `i18n-tasks missing' to show them"
end

it 'does not have unused keys' do
expect(i18n.unused_keys).to be_empty,
"#{unused_keys.leaves.count} unused i18n keys, run `i18n-tasks unused' to show them"
expect(unused_keys).to be_empty,
"#{unused_keys.leaves.count} unused i18n keys, run `i18n-tasks unused' to show them"
end
end
6 changes: 3 additions & 3 deletions templates/rspec/i18n_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

it 'does not have missing keys' do
expect(missing_keys).to be_empty,
"Missing #{missing_keys.leaves.count} i18n keys, run `i18n-tasks missing' to show them"
"Missing #{missing_keys.leaves.count} i18n keys, run `i18n-tasks missing' to show them"
end

it 'does not have unused keys' do
expect(i18n.unused_keys).to be_empty,
"#{unused_keys.leaves.count} unused i18n keys, run `i18n-tasks unused' to show them"
expect(unused_keys).to be_empty,
"#{unused_keys.leaves.count} unused i18n keys, run `i18n-tasks unused' to show them"
end
end

0 comments on commit 5abeb36

Please sign in to comment.