Sha256: 4607de7f10d82a8c204f6ab640c6789e85e9784e940640a7ab688b4530404af8

Contents?: true

Size: 472 Bytes

Versions: 19

Compression:

Stored size: 472 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'
require 'taskwarrior-web/services/parser'

describe TaskwarriorWeb::Parser do
  describe '.parse' do
    context 'when the task version is <= 1.9.2' do
      it 'should parse output as CSV' do
        TaskwarriorWeb::Config.should_receive(:version).and_return('1.0.0')
        TaskwarriorWeb::Parser::Csv.should_receive(:parse).once.with('hello')
        TaskwarriorWeb::Parser.parse('hello')
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
taskwarrior-web-1.1.12 spec/services/parser_spec.rb
taskwarrior-web-1.1.11 spec/services/parser_spec.rb
taskwarrior-web-1.1.10 spec/services/parser_spec.rb
taskwarrior-web-1.1.9 spec/services/parser_spec.rb
taskwarrior-web-1.1.8 spec/services/parser_spec.rb
taskwarrior-web-1.1.7 spec/services/parser_spec.rb
taskwarrior-web-1.1.6 spec/services/parser_spec.rb
taskwarrior-web-1.1.5 spec/services/parser_spec.rb
taskwarrior-web-1.1.4 spec/services/parser_spec.rb
taskwarrior-web-1.1.3 spec/services/parser_spec.rb
taskwarrior-web-1.1.2 spec/services/parser_spec.rb
taskwarrior-web-1.1.1 spec/services/parser_spec.rb
taskwarrior-web-1.1.0 spec/services/parser_spec.rb
taskwarrior-web-1.0.14 spec/services/parser_spec.rb
taskwarrior-web-1.0.13 spec/services/parser_spec.rb
taskwarrior-web-1.0.12 spec/services/parser_spec.rb
taskwarrior-web-1.0.11 spec/services/parser_spec.rb
taskwarrior-web-1.0.10 spec/services/parser_spec.rb
taskwarrior-web-1.0.9 spec/services/parser_spec.rb