Skip to content

Commit

Permalink
remove to_a
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Jan 23, 2014
1 parent cb24c52 commit 90b1c34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions features/configuration/read_options_from_file.feature
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Feature: read command line configuration options from files
"""ruby
describe "formatter set in custom options file" do
it "sets formatter" do
expect(RSpec.configuration.formatters.to_a.first).
expect(RSpec.configuration.formatters.first).
to be_a(RSpec::Core::Formatters::DocumentationFormatter)
end
end
Expand Down Expand Up @@ -82,7 +82,7 @@ Feature: read command line configuration options from files
"""ruby
describe "formatter" do
it "is set to documentation" do
expect(RSpec.configuration.formatters.to_a.first).to be_an(RSpec::Core::Formatters::DocumentationFormatter)
expect(RSpec.configuration.formatters.first).to be_an(RSpec::Core::Formatters::DocumentationFormatter)
end
end
"""
Expand Down

0 comments on commit 90b1c34

Please sign in to comment.