spec/lib/idy/extension/idy_spec.rb in idy-1.0.0 vs spec/lib/idy/extension/idy_spec.rb in idy-1.1.0
- old
+ new
@@ -1,10 +1,10 @@
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe Article, '.idy' do
- subject { Article.new id: 1 }
+ subject { described_class.new id: 1 }
it 'returns the encoded id' do
expect(subject.idy).to eq 'My'
end
end