Skip to content

Commit

Permalink
Fix specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Mar 10, 2017
1 parent ea11cfc commit c88b8e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/decorators/applies_title_from_slug.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
class AppliesTitleFromSlug < SimpleDelegator
include GlobalID::Identification
delegate :class, to: :__getobj__
attr_reader :slug
def initialize(record, slug)
Expand Down
5 changes: 2 additions & 3 deletions app/services/iiif_manifest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ def compound_id
end

def ark_url
if manifest["rendering"] && manifest["rendering"]["@id"]
manifest["rendering"]["@id"]
end
return unless manifest["rendering"] && manifest["rendering"]["@id"]
manifest["rendering"]["@id"]
end

def noid
Expand Down
1 change: 1 addition & 0 deletions spec/jobs/spotlight/reindex_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

before do
allow(exhibit).to receive(:id).and_return('exhibit1')
allow(Spotlight::Exhibit).to receive(:find).with('exhibit1').and_return(exhibit)
allow(CollectionManifest).to receive(:find_by_slug).and_return(manifest)
allow(resource).to receive(:save_and_index)
end
Expand Down

0 comments on commit c88b8e9

Please sign in to comment.