2018-02-09 17:38:30 +01:00
|
|
|
describe Champ do
|
|
|
|
describe '#private?' do
|
2018-02-13 17:00:19 +01:00
|
|
|
let(:type_de_champ) { build(:type_de_champ, :private) }
|
2018-02-09 17:38:30 +01:00
|
|
|
let(:champ) { type_de_champ.champ.build }
|
2016-08-08 12:52:30 +02:00
|
|
|
|
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
|