79187573

Date: 2024-11-14 06:20:23
Score: 0.5
Natty:
Report link
let(:instance) { described_class.new }
let(:value) { { a: 1 } }

before { allow(instance).to receive(:my_method).and_return(value) }

it 'returns hash' do
  expect(instance.my_method).to eq value
end

but this test is very useless

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Anton Bogdanov