Sha256: 249e97de9549a24e233c687f0bd30235638bb00b542db47895f890796f7043c4
Contents?: true
Size: 1.26 KB
Versions: 2
Compression:
Stored size: 1.26 KB
Contents
require 'sqlite3' require 'pry' Then(/^I should see the created users table in the production environment$/) do table_exists? :app => "single-db-dummy", :database => "production.sqlite3", :table => "users" end Then(/^I should see the correct columns in the users table in the production environment$/) do columns_exist? :app => "single-db-dummy", :database => "production.sqlite3", :table => "users", :columns => ["name", "email", "age"] end Then(/^I should see the created "([^"]*)" table in the "([^"]*)" database in the production environment$/) do |table, database| if database == "default" database_file_name = "production" else database_file_name = "#{database}_production" end table_exists? :app => "multi-db-dummy", :database => "#{database_file_name}.sqlite3", :table => table end Then(/^I should see the "([^"]*)", "([^"]*)" and "([^"]*)" columns in the "([^"]*)" table in the "([^"]*)" database in the production environment$/) do |column1, column2, column3, table , database| if database == "default" database_file_name = "production" else database_file_name = "#{database}_production" end columns_exist? :app => "multi-db-dummy", :database => "#{database_file_name}.sqlite3", :table => table, :columns => [column1, column2, column3] end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
multi-database-9000-0.2.0 | features/step_definitions/production_migration_steps.rb |
multi-database-9000-0.1.0 | features/step_definitions/production_migration_steps.rb |