Sha256: 20273ab27ec4f5b236eded4c7a724750d5d5e5db1009e331ef14bfb48548c2fe

Contents?: true

Size: 732 Bytes

Versions: 1

Compression:

Stored size: 732 Bytes

Contents

# 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

1 entries across 1 versions & 1 rubygems

Version Path
xommelier-0.1.35 spec/lib/xommelier/ds/canonicalization_method_spec.rb