Sha256: 956382b9ec32b24c456956e0d94d64ef61a48960f99375856318682454a2cc5d
Contents?: true
Size: 565 Bytes
Versions: 3
Compression:
Stored size: 565 Bytes
Contents
require 'spec_helper' require 'stringio' describe Kindergarten do it "should have a version constant" do Kindergarten::VERSION.should_not be_nil end it "should have a sandbox method" do res = Kindergarten.sandbox("string") res.should be_kind_of(Kindergarten::Sandbox) end it "should have warnings" do Kindergarten.warnings = true prev = $stderr.dup $stderr = StringIO.new expect { Kindergarten.warning "see" }.to change { $stderr.length } $stderr = prev Kindergarten.warnings = false end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kindergarten-0.2.1 | spec/kindergarten_spec.rb |
kindergarten-0.2.0 | spec/kindergarten_spec.rb |
kindergarten-0.1.1 | spec/kindergarten_spec.rb |