Skip to content

Commit

Permalink
Allow Rubocop to run on Ruby 2.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjgiarlo committed Aug 24, 2015
1 parent e0782bb commit d2af87e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/helpers/curation_concerns/search_paths_helper.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module CurationConcerns::SearchPathsHelper
def search_path_for_my_works(opts = {})
params_for_my_works = { 'f[generic_type_sim][]': 'Work', works: 'mine' }
params_for_my_works = { 'f[generic_type_sim][]' => 'Work', works: 'mine' }
main_app.catalog_index_path(params_for_my_works.merge(opts))
end

def search_path_for_my_collections(opts = {})
params_for_my_collections = { 'f[generic_type_sim][]': 'Collection', works: 'mine' }
params_for_my_collections = { 'f[generic_type_sim][]' => 'Collection', works: 'mine' }
main_app.catalog_index_path(params_for_my_collections.merge(opts))
end
end
2 changes: 1 addition & 1 deletion spec/features/collection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def create_collection(title, description)
@collection.apply_depositor_metadata(user_key)
@collection.save
sign_in user
visit main_app.catalog_index_path('f[generic_type_sim][]': 'Collection', works: 'mine')
visit main_app.catalog_index_path('f[generic_type_sim][]' => 'Collection', works: 'mine')
end

it 'deletes a collection' do
Expand Down

0 comments on commit d2af87e

Please sign in to comment.