Sha256: 23ee53de733457645f1a88d793b8ad1422d5a976bdecbfbde75f5cdb566dae12
Contents?: true
Size: 607 Bytes
Versions: 1
Compression:
Stored size: 607 Bytes
Contents
require File.expand_path("../spec_helper", __FILE__) describe Elapse::Instance do before :each do @r = described_class.new end # Shared examples. it_behaves_like Elapse::Instance describe "#took block mode" do it "should work stacked" do took = @r.took {sleep 0.01} @r.stack.should be_empty end end describe "stacked mode" do describe "#start" do it "should add a stopwatch to the stack" do @r.stack.size.should == 0 @r.start @r.stack.size.should == 1 @r.start @r.stack.size.should == 2 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
elapse-0.1.0 | spec/elapse/instance_spec.rb |