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

Version Path
forklift_etl-1.1.0 spec/integration/basic_spec.rb
forklift_etl-1.0.19 spec/integration/basic_spec.rb
forklift_etl-1.0.18 spec/integration/basic_spec.rb
forklift_etl-1.0.17 spec/integration/basic_spec.rb
forklift_etl-1.0.16 spec/integration/basic_spec.rb
forklift_etl-1.0.15 spec/integration/basic_spec.rb
forklift_etl-1.0.14 spec/integration/basic_spec.rb
forklift_etl-1.0.12 spec/integration/basic_spec.rb
forklift_etl-1.0.11 spec/integration/basic_spec.rb
forklift_etl-1.0.10 spec/integration/basic_spec.rb
forklift_etl-1.0.9 spec/integration/basic_spec.rb
forklift_etl-1.0.8 spec/integration/basic_spec.rb