Sha256: 5d0e5769131df0d9136ff1b147985693effea64e9b9a0c2e2bfd8367e56ff85d

Contents?: true

Size: 383 Bytes

Versions: 3

Compression:

Stored size: 383 Bytes

Contents

require 'test_helper'

class ChoiceTest < ActiveSupport::TestCase

  context "A Choice" do
    
    setup do
      @choice = Factory(:choice)
    end
    
    subject { @choice }

    should_belong_to                :question
    
    should_validate_presence_of     :value,
                                    :question

    should_allow_mass_assignment_of :value
    
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
census-0.4.2 test/models/choice_test.rb
census-0.4.1 test/models/choice_test.rb
census-0.4.0 test/models/choice_test.rb