Skip to content

Commit

Permalink
AO3-4947 Typos and review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cesy committed May 25, 2017
1 parent 313cdb1 commit 96f2d89
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/controllers/collection_items_controller_spec.rb
Expand Up @@ -56,7 +56,7 @@
get :index, collection_id: @collection.name, invited: true
expect(response).to have_http_status(:success)
expect(response.body).to include @collection.title
expect(response.body).to include @invitedwork.title
expect(response.body).to include @invited_work.title
end

it "excludes approved and rejected items" do
Expand Down Expand Up @@ -117,8 +117,7 @@
@approved_work_item = CollectionItem.find_by_item_id(@approved_work.id)
fake_login_known_user(owner)
delete :destroy, id: @approved_work_item.id
expect(response).to have_http_status(:redirect)
expect(flash[:notice]).to include "Item completely removed from collection"
it_redirects_with_notice("Item completely removed from collection")
expect(CollectionItem.where(item_id: @approved_work.id)).to be_empty
end
end
Expand Down

0 comments on commit 96f2d89

Please sign in to comment.