Sha256: 8a6bdfe7c1fe1f3a9d2cd1057f0d2b202be207993db3f4c5000cf32a742acef8

Contents?: true

Size: 683 Bytes

Versions: 12

Compression:

Stored size: 683 Bytes

Contents

# -*- encoding : utf-8 -*-
FactoryGirl.define do
  initialize_with { new(attributes) }

  factory :repo, class: GitStats::GitData::Repo do
    path "repo_path"
    factory :test_repo do
      path 'spec/integration/test_repo'
    end
  end

  factory :author, class: GitStats::GitData::Author do
    sequence(:name) { |i| "author#{i}" }
    sequence(:email) { |i| "author#{i}@gmail.com" }
    association :repo, strategy: :build
  end

  factory :commit, class: GitStats::GitData::Commit do
    sequence(:sha) { |i| i }
    sequence(:stamp) { |i| i }
    sequence(:date) { |i| Date.new(i) }
    association :repo, strategy: :build
    association :author, strategy: :build
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
git_stats-1.0.11 spec/factories.rb
git_stats-1.0.10 spec/factories.rb
git_stats-1.0.9 spec/factories.rb
git_stats-1.0.8 spec/factories.rb
git_stats-1.0.7 spec/factories.rb
git_stats-1.0.6 spec/factories.rb
git_stats-1.0.5 spec/factories.rb
git_stats-1.0.4 spec/factories.rb
git_stats-1.0.3 spec/factories.rb
git_stats-1.0.2 spec/factories.rb
git_stats-1.0.1 spec/factories.rb
git_stats-1.0.0 spec/factories.rb