Sha256: 9576815669212de2019e3fd0a702000b5bd730db08ddbd39b9726ec1006c05f4

Contents?: true

Size: 468 Bytes

Versions: 2

Compression:

Stored size: 468 Bytes

Contents

require 'spec_helper'

describe Redpomo::Entry do

  describe "#csv_rows" do

    it "parses Pomodoro's classic invalid CSV format" do
      text = File.read(fixture("timelog.csv"))
      rows = Redpomo::Entry.csv_rows(text)
      rows.should have(2).rows
    end

    it "parses my Pomodoro fork proper CSV format" do
      text = File.read(fixture("proper_timelog.csv"))
      rows = Redpomo::Entry.csv_rows(text)
      rows.should have(4).rows
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redpomo-0.0.9 spec/lib/redpomo/entry_spec.rb
redpomo-0.0.8 spec/lib/redpomo/entry_spec.rb