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-0.39.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-0.38.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-0.37.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-0.36.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-0.35.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-0.34.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-0.33.0 spec/knapsack_pro/crypto/digestor_spec.rb
knapsack_pro-0.32.0 spec/knapsack_pro/crypto/digestor_spec.rb