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

11 lines
285 B
Ruby

# frozen_string_literal: true
describe Champ do
describe '#private?' do
let(:type_de_champ) { build(:type_de_champ, :private) }
let(:champ) { type_de_champ.build_champ }
it { expect(champ.private?).to be_truthy }
it { expect(champ.public?).to be_falsey }
end
end