Sha256: 96f5dbc2f8dab877febcda673a2e6847993bb2e48b8c46a25cf9d194691dba70

Contents?: true

Size: 696 Bytes

Versions: 18

Compression:

Stored size: 696 Bytes

Contents

require 'spec_helper'

each_sample("wbstego/*") do |fname|
  describe fname do
    subject{
      if fname['.png']
        cli(fname, "1b,lsb", "-o", "all")
      else
        cli(fname, "1b,lsb")
      end
    }

    it { should include("wbStego") }
    it { should include("SuperSecretMessage") } if fname['noenc']
    if fname['even']
      it { should include("even=true") }
    else
      it { should include("even=false") }
    end

    %w'blowfish twofish cast128 rijndael'.each do |enc|
      it { should match(/#{enc}/i) } if fname[enc]
    end

    it { should include("mix=true") } if fname['mix']
    it { should include("enc=\"wbSteg") } if fname['enc'] && !fname['noenc']
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
zsteg-0.2.13 spec/wbstego_spec.rb
zsteg-0.2.12 spec/wbstego_spec.rb
zsteg-0.2.11 spec/wbstego_spec.rb
zsteg-0.2.10 spec/wbstego_spec.rb
zsteg-0.2.9 spec/wbstego_spec.rb
zsteg-0.2.8 spec/wbstego_spec.rb
zsteg-0.2.7 spec/wbstego_spec.rb
zsteg-0.2.6 spec/wbstego_spec.rb
zsteg-0.2.5 spec/wbstego_spec.rb
zsteg-0.2.4 spec/wbstego_spec.rb
zsteg-0.2.3 spec/wbstego_spec.rb
zsteg-0.2.2 spec/wbstego_spec.rb
zsteg-0.2.1 spec/wbstego_spec.rb
zsteg-0.2.0 spec/wbstego_spec.rb
zsteg-0.1.2 spec/wbstego_spec.rb
zsteg-0.1.1 spec/wbstego_spec.rb
zsteg-0.1.0 spec/wbstego_spec.rb
zsteg-0.0.1 spec/wbstego_spec.rb