Permalink
Browse files

remove duplication

  • Loading branch information...
1 parent d5d12e8 commit b062e79b035ad32aeff62c74d9baac788eaf6506 Sasha committed Nov 28, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/rspec/core/configuration_options_spec.rb
@@ -140,9 +140,9 @@
describe "--format, -f" do
it "sets :formatter" do
- parse_options('--format', 'd').should include(:formatters => [['d']])
- parse_options('-f', 'd').should include(:formatters => [['d']])
- parse_options('-fd').should include(:formatters => [['d']])
+ [['--format', 'd'], ['-f', 'd'], '-fd'].each do |args|
+ parse_options(*args).should include(:formatters => [['d']])
+ end
end
example "can accept a class name" do

0 comments on commit b062e79

Please sign in to comment.