some initial work on Redistat::Event

This commit is contained in:
2010-07-19 02:50:24 +03:00
parent 515d265853
commit 9a69c15ae2
2 changed files with 35 additions and 8 deletions

15
spec/event_spec.rb Normal file
View File

@@ -0,0 +1,15 @@
require "spec_helper"
describe Redistat::Event do
before(:each) do
@scope = "PageViews"
@label = "/about/us"
@label_hash = Digest::SHA1.hexdigest(@label)
@now = Time.now
@event = Redistat::Event.new(@scope, @label, {:views => 1}, @now, {:depth => :hour})
end
it "should initialize properly"
end