Sha256: 3fd1a6a9d48c1358c7b205c80df1866f694f597ff5d770557a0a29bb43eabe0d

Contents?: true

Size: 651 Bytes

Versions: 1

Compression:

Stored size: 651 Bytes

Contents

# encoding: utf-8

require_relative '../minitest_helper'
require 'strike'

describe Strike, 'Use of Strike in the cli' do
  describe '#obfuscate' do
    let(:assets_path) { File.join(File.dirname(__FILE__), '..', 'assets') }
    let(:input)   { "#{assets_path}/dump.sql" }
    let(:profile) { "#{assets_path}/dump_profile.rb" }
    let(:params)  { %W(obfuscate --input=#{input} --profile=#{profile}) }

    it 'should obfuscate the sql dump' do
      out = capture_io { Strike.start(params) }.join('')

      out.wont_match /Original name/
      # dump_profile.rb sets this string in each name
      out.must_match /Obfuscated name/
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
strike-0.4.0 spec/bin/strike_spec.rb