Created
June 9, 2016 12:43
-
-
Save awead/dce923282764291ce0e6e5326affbda2 to your computer and use it in GitHub Desktop.
Sufia failure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Sufia::MySharesSearchBuilder filters things we have access to in which we are not the depositor | |
Failure/Error: | |
expect(subject).to eq ["edit_access_group_ssim:public OR edit_access_group_ssim:registered OR edit_access_person_ssim:#{me.user_key}", | |
"{!terms f=has_model_ssim}GenericWork,Collection", | |
"-_query_:\"{!field f=depositor_ssim}#{me.user_key}\""] | |
expected: ["edit_access_group_ssim:public OR edit_access_group_ssim:registered OR edit_access_person_ssim:[email protected]", "{!terms f=has_model_ssim}GenericWork,Collection", "-_query_:\"{!field f=depositor_ssim}[email protected]\""] | |
got: ["({!terms f=edit_access_group_ssim}public,registered) OR edit_access_person_ssim:[email protected]", "{!terms f=has_model_ssim}GenericWork,Collection", "-_query_:\"{!field f=depositor_ssim}[email protected]\""] | |
(compared using ==) | |
# ./spec/search_builder/sufia/my_shares_search_builder_spec.rb:14:in `block (2 levels) in <top (required)>' | |
# /Users/awead/.gem/ruby/2.3.1/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load' | |
# /Users/awead/.gem/ruby/2.3.1/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load' | |
# /Users/awead/.gem/ruby/2.3.1/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run' | |
# /Users/awead/.gem/ruby/2.3.1/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec' | |
# /Users/awead/.gem/ruby/2.3.1/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start' | |
# /Users/awead/.gem/ruby/2.3.1/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>' | |
# /Users/awead/.gem/ruby/2.3.1/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors' | |
# /Users/awead/.gem/ruby/2.3.1/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment