Sha256: d04be19e8f11e190c1ae8ad0cf76120e451fb494b6aa5b91b1241be790c7a669

Contents?: true

Size: 377 Bytes

Versions: 6

Compression:

Stored size: 377 Bytes

Contents

require 'test_helper'

class BasicTest < ActiveSupport::TestCase

  def test_basic_model
    objs = [1,2,3].map do |i|
      BasicModel.new({
        id: i,
        name: "Model: #{i}"
      })
    end
    assembler = BasicModelAssembler.new(objs)

    data = assembler.data

    assert data.is_a?(Array)
    data.each do |item|
      assert item.is_a?(Hash)
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
autobots-0.2.3 test/basic_test.rb
autobots-0.2.2 test/basic_test.rb
autobots-0.2.1 test/basic_test.rb
autobots-0.2.0 test/basic_test.rb
autobots-0.1.0 test/basic_test.rb
autobots-0.0.1 test/basic_test.rb