Sha256: 9211b5aaeb6f2ad71acd3a6d5f5951034c5ded6a148c9d41b9c54400f5235400
Contents?: true
Size: 556 Bytes
Versions: 1
Compression:
Stored size: 556 Bytes
Contents
require 'minitest/autorun' require './lib/amazon_athena/commands/show_partitions' describe AmazonAthena::Commands::ShowPartitions do before do @cmd = AmazonAthena::Commands::ShowPartitions.new("mydb.mytable") end it "provides a db statement" do assert_equal "SHOW PARTITIONS 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 PARTITIONS 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_partitions_test.rb |