Sha256: a0c0d09405636cf8157e7a9a7fa3fe56579917946999446d5ebbd1caddad9c2e

Contents?: true

Size: 455 Bytes

Versions: 4

Compression:

Stored size: 455 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), %w[.. .. spec_helper]))
require 'chronic'

describe Rackamole::Stash::Perf do
  before( :all ) do
    @now = Chronic.parse( "11/27/2009" )
  end
  
  it "should record perf information correctly" do
    perf = Rackamole::Stash::Perf.new( "/", 10.0, @now )
    perf.send( :path ).should      == "/"
    perf.send( :elapsed ).should   == 10.0
    perf.send( :timestamp ).should == @now
  end
end
  

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rackamole-0.4.1 spec/rackamole/stash/perf_spec.rb
rackamole-0.4.0 spec/rackamole/stash/perf_spec.rb
rackamole-0.3.9 spec/rackamole/stash/perf_spec.rb
rackamole-0.3.8 spec/rackamole/stash/perf_spec.rb