Sha256: ce3cb6dfe136fc2e6851705e04eafbf4d134688d1fc587517f1ab7646c5fa5eb

Contents?: true

Size: 278 Bytes

Versions: 2

Compression:

Stored size: 278 Bytes

Contents

FactoryGirl.define do
  factory :package, class: 'Storys::Package' do
    path { Pathname.new(".") }
    initialize_with { new(path) }
  end

  factory :story, class: 'Storys::Story' do
    path { Pathname.new(".") }
    initialize_with { new(build(:package), path) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
storys-0.1.0 spec/factories.rb
storys-0.0.6 spec/factories.rb