Remove ChampPublic/ChampPrivate STI

This commit is contained in:
Paul Chavard 2018-02-09 17:38:30 +01:00
parent d432ea7249
commit 52749713ab
16 changed files with 78 additions and 52 deletions

View file

@ -1,7 +1,11 @@
require 'spec_helper'
describe ChampPrivate do
require 'models/champ_shared_example.rb'
describe Champ do
describe '#private?' do
let(:type_de_champ) { build(:type_de_champ_private) }
let(:champ) { type_de_champ.champ.build }
it_should_behave_like "champ_spec"
it { expect(champ.private?).to be_truthy }
it { expect(champ.public?).to be_falsey }
end
end