Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

Commit

Permalink
Fix pending tests and suppress test logging
Browse files Browse the repository at this point in the history
  • Loading branch information
escowles committed Feb 10, 2017
1 parent 98e9e35 commit 810b2f9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ group :staging, :development do
end
gem 'rbtrace', require: false
gem 'pul_uv_rails', github: 'pulibrary/pul_uv_rails', branch: 'master'
gem 'grocer', github: 'pulibrary/grocer', branch: 'spawn'
gem 'grocer', github: 'pulibrary/grocer'
source 'https://rails-assets.org' do
gem 'rails-assets-babel-polyfill'
gem 'rails-assets-bootstrap-select', '1.9.4'
Expand Down
3 changes: 1 addition & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ GIT

GIT
remote: git://github.com/pulibrary/grocer.git
revision: 9824808403395529073eb4c720efb897b8f1eda8
branch: spawn
revision: 910e3d55f4ddc2792ee4fc80bd47e275aacfd458
specs:
grocer (0.1.0)
active-fedora
Expand Down
3 changes: 3 additions & 0 deletions spec/services/messaging_client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
RSpec.describe MessagingClient do
subject { described_class.new(url) }
let(:url) { "amqp://test.x.z.s:4000" }
before do
allow_any_instance_of(Logger).to receive(:warn)
end
describe "#publish" do
context "when the URL is bad" do
it "doesn't error" do
Expand Down
9 changes: 8 additions & 1 deletion spec/services/polymorphic_manifest_builder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,14 @@ def build_file_set(id)
describe "#manifest" do
let(:result) { subject.manifest }
let(:json_result) { JSON.parse(result.to_json) }
xit "should have a good JSON-LD result" do
it "includes basic metadata in JSON-LD format" do
expect(json_result["@context"]).to eq("http://iiif.io/api/presentation/2/context.json")
expect(json_result["@id"]).to eq("http://plum.com/concern/scanned_resources/1/manifest")
expect(json_result["@type"]).to eq("sc:Manifest")
expect(json_result["label"]).to contain_exactly("Test", "Test2")
expect(json_result["description"]).to eq(["900 years of time and space, and I’ve never been slapped by someone’s mother."])
expect(json_result["viewingHint"]).to eq("individuals")
expect(json_result["viewingDirection"]).to eq("left-to-right")
end
it "has a label" do
expect(result.label).to eq ScannedResourceShowPresenter.new(SolrDocument.new(record.to_solr), nil).title
Expand Down

0 comments on commit 810b2f9

Please sign in to comment.