Skip to content

Commit

Permalink
Merge pull request glebm#107 from nybblr/nybblr/yak-shave-i18n-tasks-…
Browse files Browse the repository at this point in the history
…spec

Tidy up the spec template indentation, use let(:unused_keys).
  • Loading branch information
glebm committed Nov 11, 2014
2 parents 2488816 + 5abeb36 commit 75e40a2
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 75e40a2

Please sign in to comment.