Skip to content

Commit

Permalink
Prefer do/end for multi line blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
twe4ked committed Sep 10, 2014
1 parent 5d8bbf5 commit a84be44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/nc_first_fail_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@
end

context 'with RSpec 3' do
let(:notification) {
let(:notification) do
Struct.new(:duration, :example_count, :failure_count, :pending_count).new(0.0001, 3, 1, 1)
}
let(:success_notification) {
end
let(:success_notification) do
Struct.new(:duration, :example_count, :failure_count, :pending_count).new(0.0001, 2, 0, 0)
}
end
before do
allow(formatter.class).to receive(:rspec_3?).and_return(true)
end
Expand Down

0 comments on commit a84be44

Please sign in to comment.