Sha256: f229eb1f1a51d94df09492a5d253acfdc7b654299f1a819c64c52da613054a7b
Contents?: true
Size: 661 Bytes
Versions: 11
Compression:
Stored size: 661 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 == %w[mytable1 logs] end end
Version data entries
11 entries across 11 versions & 1 rubygems