demarches-normaliennes/spec/models/champs/yes_no_champ_spec.rb
2024-08-22 09:26:48 +02:00

8 lines
277 B
Ruby

# frozen_string_literal: true
describe Champs::YesNoChamp do
it_behaves_like "a boolean champ" do
let(:boolean_champ) { described_class.new(value: value) }
before { allow(boolean_champ).to receive(:type_de_champ).and_return(build(:type_de_champ_yes_no)) }
end
end