demarches-normaliennes/spec/models/champs/yes_no_champ_spec.rb

7 lines
246 B
Ruby
Raw Normal View History

2018-11-06 16:20:11 +01:00
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)) }
2018-11-06 16:20:11 +01:00
end
end