Sha256: fe554ef2e865f259c1a0910c8ec44862d76ce9dc1598ce0d7b586da0a890dcba

Contents?: true

Size: 364 Bytes

Versions: 3

Compression:

Stored size: 364 Bytes

Contents

require 'spec_helper'

RSpec.describe Hyrax::ArticleGenreService do
  let(:service) { described_class.new }

  describe "#select_active_options" do
    it "returns active terms" do
      active_term = ["Advertisement", "http://id.loc.gov/vocabulary/graphicMaterials/tgm000098"]
      expect(service.select_active_options).to include(active_term)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
newspaper_works-1.0.1 spec/services/hyrax/article_genre_service_spec.rb
newspaper_works-1.0.0 spec/services/hyrax/article_genre_service_spec.rb
newspaper_works-0.1.0 spec/services/hyrax/article_genre_service_spec.rb