Skip to content

Commit

Permalink
s/Mock/Stub/
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Voorhis committed Nov 11, 2008
1 parent 526d0c0 commit 8e1c44b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/csound_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
end

it "should write a valid Csound score" do
File.should_receive(:open).and_yield(f = MockFile.new)
File.should_receive(:open).and_yield(f = StubFile.new)
@writer.write(@score)
f.buf.should == <<SCO
f 1 0 0 1 example.wav 0 0 0
Expand All @@ -32,7 +32,7 @@
SCO
end

class MockFile
class StubFile
def buf; @buf ||= "" end
def write(str) buf << str end
end
Expand Down

0 comments on commit 8e1c44b

Please sign in to comment.