Skip to content

Commit 73e1ac3

Browse files
committed
WIP #84
1 parent 537b85e commit 73e1ac3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ruby/hyper-model/lib/reactive_record/active_record/reactive_record/collection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def ==(other_collection)
8686
# https://github.com/hyperstack-org/hyperstack/issues/84
8787
# the following seems wrong. It results in loading collection (i.e. @collection is nil) being equal to anything that is not a collection!!!
8888
# TODO: try changing to something more robust like `return (@collection || []) == other_collection unless other_collection.is_a? collection
89-
return !@collection unless other_collection.is_a? Collection
89+
return (@collection || []) == other_collection unless other_collection.is_a? Collection
9090
other_collection.observed
9191
# if either collection has not been created then compare the vectors
9292
# https://github.com/hyperstack-org/hyperstack/issues/81

ruby/hyper-model/spec/batch4/scope_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,9 @@ class << self
417417
end
418418
# https://github.com/hyperstack-org/hyperstack/issues/84
419419
# currently page will initially show that @scope == @previous_scope even though
420-
# previous scope is nil
421-
# page.should have_content('current scope != previous_scope')
422-
binding.pry
420+
# previous scope is nil
421+
# once issue 84 is fixed uncomment the following line
422+
page.should have_content('current scope != previous_scope')
423423
evaluate_ruby do
424424
TestComponent2.scope = :active
425425
end

0 commit comments

Comments
 (0)