Sha256: be35f333879ce2b200c665e880973d7dee29d50b6cad5a32846bad86623100d3

Contents?: true

Size: 563 Bytes

Versions: 10

Compression:

Stored size: 563 Bytes

Contents

require 'test_helper'

class InstitutionTest < ActiveSupport::TestCase

  def setup
  end
  
  test "default" do
    default_name_institution = Institution.new({"name" => "default"})
    assert(default_name_institution.default, "Default name didn't work.")
    regular_institution = Institution.new({"name" => "not_default"})
    assert(!regular_institution.default, "Default attribute didn't work.")
    default_attribute_institution = Institution.new({"name" => "not_default", "default" => "true"})
    assert(default_attribute_institution.default)
  end
  
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
authpds-0.1.2 test/unit/institution_test.rb
authpds-0.1.1 test/unit/institution_test.rb
authpds-0.1.0 test/unit/institution_test.rb
authpds-0.0.23 test/unit/institution_test.rb
authpds-0.0.22 test/unit/institution_test.rb
authpds-0.0.21 test/unit/institution_test.rb
authpds-0.0.20 test/unit/institution_test.rb
authpds-0.0.19 test/unit/institution_test.rb
authpds-0.0.18 test/unit/institution_test.rb
authpds-0.0.17 test/unit/institution_test.rb