Sha256: 9a66d03982d84ede8b0d7349a2f9d20fb70f4f2a80413aa0952eb267b56f30ff

Contents?: true

Size: 602 Bytes

Versions: 5

Compression:

Stored size: 602 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

module LargeTextField
  class LibraryTest < ActiveSupport::TestCase
    should "be able to construct a library" do
      l = Library.new(name: "Alexandria Public Library")
      l.save!

      l.description = large_description
      l.save!

      assert_equal large_description, l.description

      l = Library.find(l.id)
      assert_equal large_description, l.description
    end

    should "be able to dup a class that has no current large text field" do
      l = Library.new(name: "Alexandria Public Library")
      l.dup
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
large_text_field-1.0.2 test/unit/dummy/library_test.rb
large_text_field-1.0.2.pre.1 test/unit/dummy/library_test.rb
large_text_field-1.0.1 test/unit/dummy/library_test.rb
large_text_field-1.0.0 test/unit/dummy/library_test.rb
large_text_field-0.3.2 test/unit/dummy/library_test.rb