fa6fc077b4
* extract parent for yes no and checkbox champs * checkbox stores true / false instead of on / off * normalize blank value to nil * normalize invalid value to false * after party task: normalize checkbox values * after party task: normalize yes_no values
5 lines
145 B
Ruby
5 lines
145 B
Ruby
describe Champs::YesNoChamp do
|
|
it_behaves_like "a boolean champ" do
|
|
let(:boolean_champ) { Champs::YesNoChamp.new(value: value) }
|
|
end
|
|
end
|