Sha256: e86e9b7cf1e1f74506ff22abf3eef268c4416d8cdedf214d4bd44a4a62d6ee36

Contents?: true

Size: 915 Bytes

Versions: 23

Compression:

Stored size: 915 Bytes

Contents

require 'spec_helper'

describe 'ArrayWriter' do
  it 'must work' do
    log = <<-LOG.gsub(/^ {6}/, '')
      __BEGIN_COMMIT__
      Commit: 1df547800dcd168e589bb9b26b4039bff3a7f7e4
      Author: Jason Allen
      AuthorEmail: jason@ohloh.net
      Date:   Fri, 14 Jul 2006 16:07:15 -0700
      __BEGIN_COMMENT__
      moving COPYING

      __END_COMMENT__

      :000000 100755 0000000000000000000000000000000000000000 a7b13ff050aed1191c45d7a5db9a50edcdc5755f A	COPYING
    LOG

    commits = OhlohScm::GitParser.parse(log)
    commits.size.must_equal 1
    commit = commits.first
    commit.token.must_equal '1df547800dcd168e589bb9b26b4039bff3a7f7e4'
    commit.author_name.must_equal 'Jason Allen'
    commit.author_email.must_equal 'jason@ohloh.net'
    commit.message.must_equal "moving COPYING\n"
    commit.author_date.must_equal Time.utc(2006, 7, 14, 23, 7, 15)
    commit.diffs.size.must_equal 1
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
ohloh_scm-4.0.4 spec/ohloh_scm/parser/array_writer_spec.rb
ohloh_scm-4.0.3 spec/ohloh_scm/parser/array_writer_spec.rb
ohloh_scm-4.0.2 spec/ohloh_scm/parser/array_writer_spec.rb
ohloh_scm-4.0.1 spec/ohloh_scm/parser/array_writer_spec.rb
ohloh_scm-3.0.21 spec/ohloh_scm/parser/array_writer_spec.rb
ohloh_scm-3.0.19 spec/ohloh_scm/parser/array_writer_spec.rb
ohloh_scm-3.0.17 spec/ohloh_scm/parser/array_writer_spec.rb
ohloh_scm-3.0.16 spec/ohloh_scm/parser/array_writer_spec.rb
ohloh_scm-3.0.15 spec/ohloh_scm/parser/array_writer_spec.rb
ohloh_scm-3.0.14 spec/ohloh_scm/parser/array_writer_spec.rb
ohloh_scm-3.0.13 spec/ohloh_scm/parser/array_writer_spec.rb
ohloh_scm-3.0.12 spec/ohloh_scm/parser/array_writer_spec.rb
ohloh_scm-3.0.11 spec/ohloh_scm/parser/array_writer_spec.rb
ohloh_scm-3.0.10 spec/ohloh_scm/parser/array_writer_spec.rb
ohloh_scm-3.0.9 spec/ohloh_scm/parser/array_writer_spec.rb
ohloh_scm-3.0.8 spec/ohloh_scm/parser/array_writer_spec.rb
ohloh_scm-3.0.7 spec/ohloh_scm/parser/array_writer_spec.rb
ohloh_scm-3.0.6 spec/ohloh_scm/parser/array_writer_spec.rb
ohloh_scm-3.0.5 spec/ohloh_scm/parser/array_writer_spec.rb
ohloh_scm-3.0.4 spec/ohloh_scm/parser/array_writer_spec.rb