Sha256: 7cfd1bc0450c5b3af7f45eb6c0f2e4d4749c97d36d0c0fdeb4f5f889e773def7
Contents?: true
Size: 342 Bytes
Versions: 1
Compression:
Stored size: 342 Bytes
Contents
require 'minitest/autorun' require 'minitest/around' describe "Mutex" do around do |test| Mutex.new.synchronize(&test) end it "synchronized" do # ... end describe "pass args" do around do # No block arg "test", [ 1, 2 ] end it "passes args" do |a, b| (a + b).must_equal 3 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
minitest-around-0.0.1 | examples/mutex_spec.rb |