Sha256: 61c0ac0578dfba35a68e9135d59bea65d99e63645445ed759050f6c44adb6922

Contents?: true

Size: 361 Bytes

Versions: 11

Compression:

Stored size: 361 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
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
taps-0.3.11 spec/cli_spec.rb
dkastner-taps-0.3.11 spec/cli_spec.rb
taps-0.3.10 spec/cli_spec.rb
taps-0.3.9 spec/cli_spec.rb
taps-0.3.8 spec/cli_spec.rb
taps-0.3.7 spec/cli_spec.rb
taps-0.3.6 spec/cli_spec.rb
taps-0.3.5 spec/cli_spec.rb
taps-0.3.4 spec/cli_spec.rb
taps-0.3.3 spec/cli_spec.rb
taps-0.3.2 spec/cli_spec.rb