Sha256: 5490d75dd7ae852c1cbcb1fcc2582b1e6680401b6b9bb0dfdeee6bdcf8d6a5fd
Contents?: true
Size: 531 Bytes
Versions: 1
Compression:
Stored size: 531 Bytes
Contents
require 'minitest/autorun' require './lib/amazon_athena/commands/drop_table' describe AmazonAthena::Commands::DropTable do before do @cmd = AmazonAthena::Commands::DropTable.new("mydb.mytable") end it "provides a db statement" do assert_equal "DROP 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, ["DROP 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/drop_table_test.rb |