Skip to content

Commit

Permalink
Merge pull request #239 from OregonDigital/speedup_tests
Browse files Browse the repository at this point in the history
Speedup tests
  • Loading branch information
jechols committed Aug 4, 2015
2 parents f24cddb + 1cd8e6d commit 9bf88a1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/features/sets_show_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.describe "Sets show page" do
RSpec.describe "Sets show page", :slow => true do
it "should be able to display an asset" do
set = GenericSet.create(:read_groups => ["public"])
asset = GenericAsset.create(:title => ["Test Title"], :read_groups => ["public"], :set => [set])
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/oregon_digital/set_fixer_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.describe OregonDigital::SetFixer do
RSpec.describe OregonDigital::SetFixer, :slow => true do
subject { described_class.new(solr_service, base) }

let(:solr_service) { ActiveFedora::SolrService }
Expand Down
7 changes: 6 additions & 1 deletion spec/services/enricher_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
subject { described_class.new(id) }
let(:id) { asset.id }
let(:asset) do
GenericAsset.create do |g|
a = GenericAsset.new do |g|
g.lcsubject = [uri]
end
allow(a).to receive(:id).and_return("yo")
solr.add a.to_solr.merge(:id => a.id)
solr.commit
a
end
let(:uri) { resource.rdf_subject }
let(:resource) do
Expand All @@ -15,6 +19,7 @@
r.persist!
r
end
let(:solr) { ActiveFedora.solr.conn }

describe "#enrich!" do
it "should enrich the solr document" do
Expand Down

0 comments on commit 9bf88a1

Please sign in to comment.