Sha256: bbff67ffb0c126d0368018b25900b6a20575079696fd510d396e7925c897bcc7

Contents?: true

Size: 496 Bytes

Versions: 2

Compression:

Stored size: 496 Bytes

Contents

require 'spec_helper'
require 'redpomo/entry'

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)
      expect(rows.size).to eq(2)
    end

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

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redpomo-reloaded-0.0.14 spec/lib/redpomo/entry_spec.rb
redpomo-reloaded-0.0.13 ./spec/lib/redpomo/entry_spec.rb