You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
response_set_specs fails in "describe 'as a quiz'".
The ResponseSet.correctness_hash method tries to call the Ruby compact method against the self.responses ActiveRecord relation.
The release notes for Rails 4.1 indicates:
Relation no longer has mutator methods like #map! and #delete_if. Convert to an Array by calling #to_a before using these methods. (Pull Request)
The blacklisted methods include compact (See changes to activerecord/lib/active_record/relation/delegation.rb in the pull request) and therefore breaks the code in correctness_hash.
P.S. - I realize 4.1 is not yet officially supported, but most of the code works well in 4.1.
The text was updated successfully, but these errors were encountered:
kjayma
added a commit
to kjayma/surveyor
that referenced
this issue
Aug 10, 2014
response_set_specs fails in "describe 'as a quiz'".
The ResponseSet.correctness_hash method tries to call the Ruby compact method against the self.responses ActiveRecord relation.
The release notes for Rails 4.1 indicates:
Relation no longer has mutator methods like #map! and #delete_if. Convert to an Array by calling #to_a before using these methods. (Pull Request)
The blacklisted methods include compact (See changes to activerecord/lib/active_record/relation/delegation.rb in the pull request) and therefore breaks the code in correctness_hash.
P.S. - I realize 4.1 is not yet officially supported, but most of the code works well in 4.1.
The text was updated successfully, but these errors were encountered: