Sha256: 450301c1d765a892ff7ce61f3731592d19342334f02098b03582c5ae4f779dc7
Contents?: true
Size: 659 Bytes
Versions: 1
Compression:
Stored size: 659 Bytes
Contents
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
constructor-pages-1.0.0beta2 | spec/models/constructor_pages/types/boolean_type_spec.rb |