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

Adding collections - closes #206 #245

Merged
merged 1 commit into from
Dec 15, 2015
Merged

Adding collections - closes #206 #245

merged 1 commit into from
Dec 15, 2015

Conversation

escowles
Copy link
Member

No description provided.

describe "#validate" do
let(:errors) { double("Errors") }
before do
allow(subject).to receive(:existing_exhibit_ids).and_return(['slug1'])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stubbing the object under test is usually bad joojoo. Can you go a level deeper?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I'll stub ActiveFedora::SolrService.query instead of the ids method.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that turns out to be too complicated, maybe a query object to encapsulate it?

@tpendragon
Copy link
Contributor

Can we add "Create a Collection" to the front page? Maybe as the first option?

@tpendragon
Copy link
Contributor

"Add to Collection" from the search results view pops up a modal which seems to immediately dissapear

@escowles
Copy link
Member Author

I've added a button to create a Collection to the home page, stubbed the ActiveFedora::SolrService.query method instead of the ExhibitIdValidator, and suppressed links to the broken "Add to a Collection" modal.

@tpendragon
Copy link
Contributor

👍 Will merge when it passes.

@tpendragon
Copy link
Contributor

@escowles Coverage. =( Looks like collectible

@escowles
Copy link
Member Author

Not sure why the feature test didn't cover that -- I've added a controller test to get it back to 💯

tpendragon pushed a commit that referenced this pull request Dec 15, 2015
@tpendragon tpendragon merged commit 1a9e924 into master Dec 15, 2015
@tpendragon tpendragon deleted the collections branch December 15, 2015 18:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants