File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
lib/reactive_record/active_record/reactive_record Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments