Skip to content

Commit

Permalink
Always be explicit about which method is tested
Browse files Browse the repository at this point in the history
  • Loading branch information
janko committed Jun 16, 2017
1 parent c99afdb commit d8413f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/chunked_io_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def chunked_io(options = {})
end
end

describe "reading" do
describe "#read" do
describe "without arguments" do
it "reads whole content" do
io = chunked_io(chunks: ["ab", "c"].each)
Expand Down Expand Up @@ -319,7 +319,7 @@ def chunked_io(options = {})
end
end

describe "retrieving chunks" do
describe "#each_chunk" do
it "yields chunks with a block" do
io = chunked_io(chunks: ["ab", "c"].each)
io.each_chunk { |chunk| (@chunks ||= []) << chunk }
Expand Down Expand Up @@ -405,7 +405,7 @@ def chunked_io(options = {})
end
end

describe "rewinding" do
describe "#rewind" do
it "rewinds the IO if it's rewindable" do
io = chunked_io(chunks: ["ab", "c"].each)
assert_equal "abc", io.read
Expand Down

0 comments on commit d8413f5

Please sign in to comment.