spec/lib/idy/extension/to_param_spec.rb in idy-1.0.0 vs spec/lib/idy/extension/to_param_spec.rb in idy-1.1.0
- old
+ new
@@ -2,10 +2,10 @@
require 'rails_helper'
RSpec.describe Clean, '.to_param' do
context 'when object does not acts as idy' do
- subject { Clean.new id: 1 }
+ subject { described_class.new id: 1 }
it 'behaves as default' do
expect(subject.to_param).to eq '1'
end
end