Sha256: 86d3973c401aae69193fd24bdb26015575ba510ddb127fb8f86deb11c8d709ed
Contents?: true
Size: 564 Bytes
Versions: 1
Compression:
Stored size: 564 Bytes
Contents
require 'minitest/autorun' require './lib/amazon_athena/commands/show_create_table' describe AmazonAthena::Commands::ShowCreateTable do before do @cmd = AmazonAthena::Commands::ShowCreateTable.new("mydb.mytable") end it "provides a db statement" do assert_equal "SHOW CREATE TABLE mydb.mytable;", @cmd.statement end it "executes a query" do results = MiniTest::Mock.new results.expect(:raw_output, nil) conn = MiniTest::Mock.new conn.expect(:query, results, ["SHOW CREATE TABLE mydb.mytable;"]) @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_create_table_test.rb |