Sha256: a6b19a8ff4292c693e4a74446eea7b789dfcb5a4ae887b1606237e3615d1c307

Contents?: true

Size: 391 Bytes

Versions: 6

Compression:

Stored size: 391 Bytes

Contents

require "test_helper"

class Order < ActiveRecord::Base
  add_to_bag string: :string
end

class StringTest < ActiveSupport::TestCase
  def setup
    @order = Order.new
  end

  test "assigning boolean to string" do
    value = false
    @order.string = value
    assert_equal "false", @order.string
    value = true
    @order.string = value
    assert_equal "true", @order.string
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
act_with_bag-1.1.5 test/string_test.rb
act_with_bag-1.1.4 test/string_test.rb
act_with_bag-1.1.3 test/string_test.rb
act_with_bag-1.1.2 test/string_test.rb
act_with_bag-1.1.1 test/string_test.rb
act_with_bag-1.1.0 test/string_test.rb