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-7.13.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-7.12.1 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-7.12.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-7.11.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-7.10.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-7.9.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-7.8.2 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-7.8.1 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-7.8.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-7.7.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-7.6.2 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-7.6.1 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-7.6.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-7.1.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-7.0.1 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-7.0.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-6.0.4 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-6.0.3 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-6.0.2 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-6.0.1 spec/knapsack_pro/crypto/digestor_spec.rb