Sha256: 0b4bb5b02370b7c75c871f3bf0b8d8261da43fefcd8dfbdbfca43a545d2ffc55

Contents?: true

Size: 331 Bytes

Versions: 6

Compression:

Stored size: 331 Bytes

Contents

RSpec.shared_context 'seeds' do
  before do
    jane_id = conn[:users].insert name: 'Jane'
    joe_id = conn[:users].insert name: 'Joe'

    conn[:tasks].insert user_id: joe_id, title: 'Joe Task'
    task_id = conn[:tasks].insert user_id: jane_id, title: 'Jane Task'

    conn[:tags].insert task_id: task_id, name: 'red'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rom-repository-0.2.0 spec/shared/seeds.rb
rom-repository-0.2.0.rc1 spec/shared/seeds.rb
rom-repository-0.2.0.beta1 spec/shared/seeds.rb
rom-repository-0.1.0 spec/shared/seeds.rb
rom-repository-0.0.2 spec/shared/seeds.rb
rom-repository-0.0.1 spec/shared/seeds.rb