demarches-normaliennes/spec/models/champ_private_spec.rb

10 lines
254 B
Ruby
Raw Normal View History

2018-02-09 17:38:30 +01:00
describe Champ do
describe '#private?' do
let(:type_de_champ) { build(:type_de_champ, :private) }
let(:champ) { type_de_champ.build_champ }
2018-02-09 17:38:30 +01:00
it { expect(champ.private?).to be_truthy }
it { expect(champ.public?).to be_falsey }
end
2017-04-04 15:27:04 +02:00
end