Sha256: aa378fd5833adaa7fc0bff62c2491f04cf55347fe7f016ba49eeee10cd854b53
Contents?: true
Size: 741 Bytes
Versions: 3
Compression:
Stored size: 741 Bytes
Contents
Given /^an? (.+) database table with rows:$/ do |table_name, table| step "a #{table_name} database table" rows = Itiel::Extract::CustomSQL.sequel_connection(:test)[table_name.to_sym] table.hashes.each do |row| rows.insert row end end Given /^a blogposts database table$/ do Itiel::Extract::CustomSQL.connection_file_path = @database_config_path Itiel::Extract::CustomSQL.sequel_connection(:test).create_table :blogposts do Integer :id String :title String :author end end Given /^an? authors database table$/ do Itiel::Extract::CustomSQL.connection_file_path = @database_config_path Itiel::Extract::CustomSQL.sequel_connection(:test).create_table :authors do Integer :id String :name end end
Version data entries
3 entries across 3 versions & 1 rubygems