demarches-normaliennes/spec/models/champ_private_spec.rb

12 lines
285 B
Ruby
Raw Normal View History

# frozen_string_literal: true
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