Sha256: 32eee849e7ed56df42874e3352b4d501f66ca3c3b4fa725ed343f8a1e891901c

Contents?: true

Size: 407 Bytes

Versions: 5

Compression:

Stored size: 407 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_act_as_list

    should_validate_presence_of     :value,
                                    :question

    should_allow_mass_assignment_of :value
    
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
census-0.3.1 test/models/choice_test.rb
census-0.3.0 test/models/choice_test.rb
census-0.2.1 test/models/choice_test.rb
census-0.2.0 test/models/choice_test.rb
census-0.1.0 test/models/choice_test.rb