Sha256: 9074c57ed2bd9568c7e24cc139df4f4a0b32780c73f396d7d1fe1e6b1ca58fb7

Contents?: true

Size: 845 Bytes

Versions: 2

Compression:

Stored size: 845 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::Atom::Entry do
  describe 'instance' do
    subject { described_class.new }

    [:id, :title, :updated].each do |must_field|
      it { is_expected.to respond_to(must_field) }
    end
    [:content, :published, :rights, :source, :summary].each do |may_field|
      it { is_expected.to respond_to(may_field) }
    end
    %w(author category contributor link).each do |any_field|
      it { is_expected.to respond_to(any_field) }
      it('have plural methods for embedded collections') { is_expected.to respond_to(any_field.pluralize) }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xommelier-0.1.34 spec/lib/xommelier/atom/entry_spec.rb
xommelier-0.1.33 spec/lib/xommelier/atom/entry_spec.rb