Sha256: 4be8758f75bf028001574d9947cd59799272cca0196ea8a1c537c45853387ddf

Contents?: true

Size: 829 Bytes

Versions: 1

Compression:

Stored size: 829 Bytes

Contents

# 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

1 entries across 1 versions & 1 rubygems

Version Path
xommelier-0.1.35 spec/lib/xommelier/atom/entry_spec.rb