Sha256: ab75299fd06f992e35b0a2e0e6f1e17bf7d6be9472e90204c6f447a9f4d58ed3

Contents?: true

Size: 790 Bytes

Versions: 1

Compression:

Stored size: 790 Bytes

Contents

# coding: utf-8

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

require 'spec_helper'

describe Xommelier::Atom::Entry do
  describe 'instance' do
    subject { Xommelier::Atom::Entry.new }

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

Version data entries

1 entries across 1 versions & 1 rubygems

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