Sha256: b7410e297c8b7fd42f6f4e593f9005a09430b0533fbc1635e5e99ce8cbb88a20
Contents?: true
Size: 511 Bytes
Versions: 1
Compression:
Stored size: 511 Bytes
Contents
require 'minitest/autorun' require './lib/amazon_athena/commands/show_tables' describe AmazonAthena::Commands::ShowTables do before do @cmd = AmazonAthena::Commands::ShowTables.new("mydb") end it "provides a db statement" do assert_equal "SHOW TABLES IN mydb;", @cmd.statement end it "executes a query" do results = MiniTest::Mock.new results.expect(:map, nil) conn = MiniTest::Mock.new conn.expect(:query, results, ["SHOW TABLES IN mydb;"]) @cmd.run(conn) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
athena-cli-0.1.0 | test/lib/amazon_athena/commands/show_tables_test.rb |