Sha256: 8223ab7bef3121cfb1895e7a176cef9a2e566c8dcc1b727b02645f372aa53bd9
Contents?: true
Size: 678 Bytes
Versions: 38
Compression:
Stored size: 678 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module ConstructorPages module Types describe 'Boolean type' do it 'should contain boolean type values' do Template.delete_all _template = Template.create name: 'Product', code_name: 'product' _field = Field.create name: 'Available', code_name: 'available', template: _template, type_value: 'boolean' _page = Page.create name: 'TV', template: _template _boolean = BooleanType.create value: true, field: _field, page: _page _boolean.value.should == true _boolean.update value: 0 _boolean.reload _boolean.value.should == false end end end end
Version data entries
38 entries across 38 versions & 3 rubygems