Sha256: e208be228476430088cd70f059190a2d9aa6efc4985e1ce8be303adb5faebdd7

Contents?: true

Size: 481 Bytes

Versions: 1

Compression:

Stored size: 481 Bytes

Contents

# hash fixture data
ARTISTS = [
  { name: 'Blake Mills', genre: 'alternative' },
  { name: 'Björk', genre: 'electronic' },
  { name: 'James Blake', genre: 'electronic' },
  { name: 'Janelle Monae', genre: 'alt-soul' },
  { name: 'SZA', genre: 'alt-soul' },
].freeze

require 'sequel'
DB = Sequel.sqlite

DB.create_table :artists do
  String :name
  String :genre
end

# put the hash fixtures into an in-memory SQLite database
ARTISTS.each { |artist| DB[:artists].insert(artist) }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-reducer-0.1.0 spec/fixtures.rb