Sha256: 02c5a3f78849a0defb17cd3edadff152169f9c40a2399f9fcf7668016ccdf0be
Contents?: true
Size: 383 Bytes
Versions: 3
Compression:
Stored size: 383 Bytes
Contents
require "spec_helper" describe IO do describe ".write" do it do IO.should_receive(:write_without_tagen).with("foo", "content", nil, {mkdir: true}) IO.write("foo", "content", mkdir: true) end end describe ".append" do it do IO.should_receive(:write).with("foo", "content", nil, {mode: "a"}) IO.append("foo", "content") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tagen-2.0.2 | spec/tagen/core/io_spec.rb |
tagen-2.0.1 | spec/tagen/core/io_spec.rb |
tagen-2.0.0 | spec/tagen/core/io_spec.rb |