Sha256: 6cd4ea9f51946ce24fb954e396245f2f4fdc4089d8ef51f80ff77de20a69842b

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

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

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

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