Sha256: 1d920803ab540a2cae87c84f19975218f5ec7dfa394f60cdec3aab4106678b13
Contents?: true
Size: 663 Bytes
Versions: 21
Compression:
Stored size: 663 Bytes
Contents
require File.dirname(__FILE__) + '/base' require 'taps/cli' describe Taps::Cli do it "translates a list of tables into a regex that can be used in table_filter" do @cli = Taps::Cli.new(["-t", "mytable1,logs", "sqlite://tmp.db", "http://x:y@localhost:5000"]) opts = @cli.clientoptparse(:pull) opts[:table_filter].should == "(^mytable1$|^logs$)" end it "translates a list of tables to exclude into a regex that can be used in table_filter" do @cli = Taps::Cli.new(["-e", "mytable1,logs", "sqlite://tmp.db", "http://x:y@localhost:5000"]) opts = @cli.clientoptparse(:pull) opts[:exclude_tables].should == ['mytable1','logs'] end end
Version data entries
21 entries across 21 versions & 5 rubygems