Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 17 lines (12 sloc) 0.391 kb
e9c1c0a Michael Feathers initial commit
michaelfeathers authored
1
2 require 'rspec'
301a2cc Iain Hecker Fix requires, make specs running
authored
3 require_relative 'csv_event_store.rb'
e9c1c0a Michael Feathers initial commit
michaelfeathers authored
4
5 describe "CSVEventStore" do
6 it "should read a complexity" do
7 store = CSVEventStore.new('complexity,\n1.0\n')
8 store.read_events.first.complexity.should == 1.0
9 end
10
11 it "should read a date" do
12 store = CSVEventStore.new('date,complexity,\n1/12/1995,1.0\n')
13 store.read_events.first.date.year.should == 1995
14 end
15
16 end
Something went wrong with that request. Please try again.