Sha256: ff588dd00528ebbd0c85ad1cb56e2c8f74fa42311094c576c3068bf175fd7ab0
Contents?: true
Size: 793 Bytes
Versions: 12
Compression:
Stored size: 793 Bytes
Contents
require 'spec_helper' describe 'basics' do describe 'test suite setup' do it 'seeded the mysql dbs' do client = SpecClient.mysql('forklift_test_source_a') tables = [] client.query("show tables").each do |row| tables << row.values[0] end expect(tables.count).to eql 3 client = SpecClient.mysql('forklift_test_source_b') tables = [] client.query("show tables").each do |row| tables << row.values[0] end expect(tables.count).to eql 1 end it 'seeded the elasticsearch db' do client = SpecClient.elasticsearch('forklift_test') results = client.search({ index: 'forklift_test' , body: { :query => { :match_all => {} } } }) expect(results['hits']['total']).to eql 5 end end end
Version data entries
12 entries across 12 versions & 1 rubygems