Sha256: c1eb97bf896aee297ff933ef32e644a868a631891856d2380df1966fe857705a

Contents?: true

Size: 748 Bytes

Versions: 2

Compression:

Stored size: 748 Bytes

Contents

# coding: utf-8
# frozen_string_literal: true

################################################
# © Alexander Semyonov, 2011—2013, MIT License #
# Author: Alexander Semyonov <al@semyonov.us>  #
################################################

require 'spec_helper'

describe Xommelier::DS::CanonicalizationMethod do
  it { is_expected.to respond_to(:algorithm) }

  describe '.new_omit_comments' do
    subject { described_class.new_omit_comments }
    its('algorithm.to_s') { should == 'http://www.w3.org/TR/2001/REC-xml-c14n-20010315' }
  end

  describe '.new_with_comments' do
    subject { described_class.new_with_comments }
    its('algorithm.to_s') { should == 'http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments' }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xommelier-0.1.34 spec/lib/xommelier/ds/canonicalization_method_spec.rb
xommelier-0.1.33 spec/lib/xommelier/ds/canonicalization_method_spec.rb