Sha256: 40b3a192438f3ec2800681276020b9323258f0fd306e65d8a743178172366104

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Clean, ':salt' do
  describe '#salt' do
    before { allow(described_class).to receive(:idy_options).and_return(salt: :salty) }

    it 'fetchs the salt options' do
      expect(described_class.salt).to eq(:salty)
    end
  end

  describe '.salt' do
    before { allow(described_class).to receive(:salt).and_return :salt }

    it 'delegates to class method' do
      expect(described_class.new.salt).to eq :salt
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
idy-1.1.0 spec/lib/idy/extension/salt_spec.rb