Sha256: e576001b79bab43635b99d58764d2c150c46d2819634eba9024a447a8b9253b1

Contents?: true

Size: 388 Bytes

Versions: 148

Compression:

Stored size: 388 Bytes

Contents

describe KnapsackPro::Crypto::Digestor do
  describe '.salt_hexdigest' do
    let(:str_to_encrypt) { 'a_spec.rb' }

    subject { described_class.salt_hexdigest(str_to_encrypt) }

    before do
      expect(KnapsackPro::Config::Env).to receive(:salt).at_least(1).and_return('123')
    end

    it { should eq '93131469d5aee8158473f9945847cd411ba975644b617897b7c33164adc55038' }
  end
end

Version data entries

148 entries across 148 versions & 1 rubygems

Version Path
knapsack_pro-2.18.1 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-2.18.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-2.17.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-2.16.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-2.15.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-2.14.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-2.13.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-2.12.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-2.11.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-2.10.1 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-2.10.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-2.9.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-2.8.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-2.7.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-2.6.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-2.5.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-2.4.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-2.3.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-2.2.1 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-2.2.0 spec/knapsack_pro/crypto/digestor_spec.rb