Remove ChampPublic/ChampPrivate STI
This commit is contained in:
parent
d432ea7249
commit
52749713ab
16 changed files with 78 additions and 52 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue