Sha256: ce6e23aba85d48910b850162e6c481bb0023890c6074e945e9aecf49d8de8a25

Contents?: true

Size: 716 Bytes

Versions: 19

Compression:

Stored size: 716 Bytes

Contents

require 'test_helper'

class Kaui::PluginInfoTest < ActiveSupport::TestCase
  fixtures :plugin_infos, :plugin_info_properties

  include Kaui::PluginInfosHelperTest

  test "can serialize from json" do
    as_json = plugin_infos(:plugin_info_for_pierre)
    plugin_info = create_plugin_info(as_json)

    assert_equal as_json["externalPaymentId"], plugin_info.external_payment_id
    @@plugin_info_keys.each_with_index do |key, i|
      assert_equal plugin_info_properies[i]["key"], plugin_info.properties[i].key
      assert_equal plugin_info_properies[i]["value"], plugin_info.properties[i].value
      assert_equal plugin_info_properies[i]["is_updatable"], plugin_info.properties[i].is_updatable
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
kaui-0.2.2 test/unit/kaui/plugin_info_test.rb
kaui-0.2.1 test/unit/kaui/plugin_info_test.rb
kaui-0.2.0 test/unit/kaui/plugin_info_test.rb
kaui-0.1.18 test/unit/kaui/plugin_info_test.rb
kaui-0.1.17 test/unit/kaui/plugin_info_test.rb
kaui-0.1.16 test/unit/kaui/plugin_info_test.rb
kaui-0.1.15 test/unit/kaui/plugin_info_test.rb
kaui-0.1.14 test/unit/kaui/plugin_info_test.rb
kaui-0.1.12 test/unit/kaui/plugin_info_test.rb
kaui-0.1.11 test/unit/kaui/plugin_info_test.rb
kaui-0.1.10 test/unit/kaui/plugin_info_test.rb
kaui-0.1.9 test/unit/kaui/plugin_info_test.rb
kaui-0.1.8 test/unit/kaui/plugin_info_test.rb
kaui-0.1.7 test/unit/kaui/plugin_info_test.rb
kaui-0.1.6 test/unit/kaui/plugin_info_test.rb
kaui-0.1.5 test/unit/kaui/plugin_info_test.rb
kaui-0.1.4 test/unit/kaui/plugin_info_test.rb
kaui-0.1.3 test/unit/kaui/plugin_info_test.rb
kaui-0.1.2 test/unit/kaui/plugin_info_test.rb