Sha256: 82295154d4dbcf79fd70fded93f6987ad4a7a0103818d516046b8f1bdf3d21c6
Contents?: true
Size: 485 Bytes
Versions: 1
Compression:
Stored size: 485 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe Article, '.idy_options' do context 'when options is not given' do it 'returns a default options with a salt generated based on model name' do expect(described_class.idy_options).to eq(salt: article_default_salt) end end context 'when salt is given' do it 'returns a default options with a salt equal the given one' do expect(Comment.idy_options).to eq(salt: 'salt') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
idy-1.1.0 | spec/lib/idy/extension/options_spec.rb |