Sha256: 33f68b641c8700a6f444b7f25f695e21396444ac4414ba2704c73309215ec3ba
Contents?: true
Size: 457 Bytes
Versions: 3
Compression:
Stored size: 457 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe ':salt' do describe '#salt' do before do allow(Clean).to receive(:idy_options) { { salt: :salty } } end it 'fetchs the salt options' do expect(Clean.salt).to eq(:salty) end end describe '.salt' do before { allow(Clean).to receive(:salt) { :salt } } it 'delegates to class method' do expect(Clean.new.salt).to eq :salt end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
idy-0.1.3 | spec/lib/idy/extension/salt_spec.rb |
idy-0.1.2 | spec/lib/idy/extension/salt_spec.rb |
idy-0.1.1 | spec/lib/idy/extension/salt_spec.rb |