Sha256: 25a13bb1a6fc6ba652be3b3c0b332a5e299ba136151ba52d90d005a5c0f08725

Contents?: true

Size: 410 Bytes

Versions: 2

Compression:

Stored size: 410 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper.rb'

class ActsAsAnnotationValueTest < ActiveSupport::TestCase
  
  # TODO: duplication tests!!
  
  def test_ann_content_setter
    val = Annotation.first.value
    
    new_content = "hellow world, testing test_ann_content_setter"
    
    val.ann_content = new_content
    
    assert_equal new_content, val.send(val.class.ann_value_content_field)
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
my_annotations-0.6.0 test/acts_as_annotation_value_test.rb
my_annotations-0.5.1 test/acts_as_annotation_value_test.rb