Sha256: b559c0cf800bd429e9c8ad67b35a5fb0c381f4442ff912dcdfb892fdee13b6e6

Contents?: true

Size: 1.44 KB

Versions: 7

Compression:

Stored size: 1.44 KB

Contents

# -*- encoding : utf-8 -*-
require 'spec_helper'

shared_context "shared" do
  let(:repo) { build(:test_repo, last_commit_sha: '872955c') }
  let(:commit_dates) { [
      DateTime.parse('2012-10-19 10:44:34 +0200'),
      DateTime.parse('2012-10-19 10:46:10 +0200'),
      DateTime.parse('2012-10-19 10:46:56 +0200'),
      DateTime.parse('2012-10-19 10:47:35 +0200'),
      DateTime.parse('2012-10-20 12:49:02 +0200'),
      DateTime.parse('2012-10-21 12:49:02 +0200'),
      DateTime.parse('2012-10-21 12:54:02 +0200'),
      DateTime.parse('2012-10-21 13:20:00 +0200'),
      DateTime.parse('2012-10-24 15:49:02 +0200'),
      DateTime.parse('2012-10-26 17:05:25 +0200'),
  ] }
  let(:tg_commit_dates) { [
      DateTime.parse('2012-10-19 10:44:34 +0200'),
      DateTime.parse('2012-10-19 10:46:10 +0200'),
      DateTime.parse('2012-10-19 10:46:56 +0200'),
      DateTime.parse('2012-10-19 10:47:35 +0200'),
      DateTime.parse('2012-10-20 12:49:02 +0200'),
      DateTime.parse('2012-10-21 12:49:02 +0200'),
      DateTime.parse('2012-10-21 13:20:00 +0200'),
      DateTime.parse('2012-10-26 17:05:25 +0200'),
  ] }
  let(:jd_commit_dates) { [
      DateTime.parse('2012-10-21 12:54:02 +0200'),
      DateTime.parse('2012-10-24 15:49:02 +0200'),
  ] }

  let(:expected_authors) { [
      build(:author, repo: repo, name: "Tomasz Gieniusz", email: "tomasz.gieniusz@gmail.com"),
      build(:author, repo: repo, name: "John Doe", email: "john.doe@gmail.com"),
  ] }
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
git_stats-1.0.6 spec/integration/shared.rb
git_stats-1.0.5 spec/integration/shared.rb
git_stats-1.0.4 spec/integration/shared.rb
git_stats-1.0.3 spec/integration/shared.rb
git_stats-1.0.2 spec/integration/shared.rb
git_stats-1.0.1 spec/integration/shared.rb
git_stats-1.0.0 spec/integration/shared.rb