Sha256: d2461002c6204b34d4dc669ebfcda4941b20468d73142c6e08163f7c1cd4bfc8
Contents?: true
Size: 675 Bytes
Versions: 2
Compression:
Stored size: 675 Bytes
Contents
require 'test_helper' module Certify class AuthorityTest < ActiveSupport::TestCase test "create standard ca" do # create a new model ca = Authority.new(:commonname => "company", :organization => "company Inc.", :city => "Town", :state => "BW", :country => "DE", :email => "info@company.com") # validate assert ca.valid?, ca.errors.full_messages.join('; ') assert ca.save assert_equal "company", ca.commonname assert_equal "company Inc.", ca.organization assert_equal "Town", ca.city assert_equal "BW", ca.state assert_equal "DE", ca.country assert_equal "info@company.com", ca.email end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
certify-0.0.3 | test/unit/certify/authority_test.rb |
certify-0.0.2 | test/unit/certify/authority_test.rb |