Skip to content

Commit

Permalink
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'rspec'

describe "Enumerable#each_with_index" do
it "will destructure array to first element if one param present" do
%i(foo).each_with_index {|v| expect(v).to eq(:foo) }
end
end

0 comments on commit 04dd4a7

Please sign in to comment.