demarches-normaliennes/spec/models/logic/empty_spec.rb
simon lehericey 6ebfc505c4 add empty
2022-06-17 14:53:27 +02:00

16 lines
317 B
Ruby

describe Logic::Constant do
include Logic
describe '#type' do
it { expect(empty.type).to eq(:empty) }
end
describe '#errors' do
it { expect(empty.errors).to eq(['empty']) }
end
describe '#==' do
it { expect(empty).to eq(empty) }
it { expect(empty).not_to eq(constant(true)) }
end
end