spec/lib/idy/extension/options_spec.rb in idy-1.0.0 vs spec/lib/idy/extension/options_spec.rb in idy-1.1.0
- old
+ new
@@ -3,10 +3,10 @@
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(Article.idy_options).to eq(salt: article_default_salt)
+ 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