Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 16 lines (12 sloc) 0.391 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

require 'rspec'
require_relative 'csv_event_store.rb'

describe "CSVEventStore" do
  it "should read a complexity" do
    store = CSVEventStore.new('complexity,\n1.0\n')
    store.read_events.first.complexity.should == 1.0
  end

  it "should read a date" do
    store = CSVEventStore.new('date,complexity,\n1/12/1995,1.0\n')
    store.read_events.first.date.year.should == 1995
  end

end
Something went wrong with that request. Please try again.