Unit Test

suggest change

Unit tests test parts of the application in isolation. Usually a unit under test is a class or module.

let(:gift) { create :gift }

describe "#find" do
  subject { described_class.find(user, Date.current) }
  it { is_expected.to eq gift }
end

source

This kind of test is as direct and specific as possible.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents