demarches-normaliennes/spec/models/champ_private_spec.rb

12 lines
277 B
Ruby
Raw Normal View History

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