Sha256: d62f8a0c9ab9744095020ae9516ab65a0e08c8d6d652837ca604a82e78cd8f6e

Contents?: true

Size: 382 Bytes

Versions: 2

Compression:

Stored size: 382 Bytes

Contents

require "test_helper"

class InitializerTest < Minitest::Test
  test "assigns properties" do
    klass = Class.new do
      include Citrix::Training::Helpers::Initializer
      attr_accessor :name, :email
    end

    instance = klass.new(name: "John", email: "john@example.com")

    assert_equal "John", instance.name
    assert_equal "john@example.com", instance.email
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
citrix-0.2.2 test/citrix/training/helpers/initializer_test.rb
citrix-0.2.1 test/citrix/training/helpers/initializer_test.rb