Sha256: 8f7dc7a6dc920062688d0be2ffbf9d6358602130bea8c37d1caa7eb18a8fa5ad

Contents?: true

Size: 399 Bytes

Versions: 1

Compression:

Stored size: 399 Bytes

Contents

require 'spec_helper'

describe Fe::Element do
  it { should belong_to :question_grid }  
  it { should belong_to :choice_field }  
  it { should have_many :page_elements }
  it { should have_many :pages }
  it { should validate_presence_of :kind }
  # it { should validate_presence_of :style } # this isn't working
  it { should ensure_length_of :kind }
  it { should ensure_length_of :style }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fe-0.0.3 spec/models/fe/element_spec.rb