Skip to content

Commit

Permalink
Add noo to global table
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Jun 2, 2023
1 parent 12e3f1d commit c032324
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/support/time_machine/structure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class ::SubSubBar < ActiveRecord::Base
# Master timeline, used in multiple specs. It is defined here
# as a global variable to be able to be shared across specs.
#
$t = Struct.new(:foo, :bar, :baz, :subbar, :foos, :bars, :boos, :moos, :noos).new
$t = Struct.new(:foo, :bar, :baz, :subbar, :foos, :bars, :boos, :moos, :noos, :noo).new

# Set up associated records, with intertwined updates
#
Expand Down Expand Up @@ -186,7 +186,7 @@ class ::SubSubBar < ActiveRecord::Base

$t.baz = Baz.create! name: 'baz', bar: $t.bar

first_noo = Noo.create! name: 'Historical Element 1'
$t.noo = ts_eval { Noo.create! name: 'Historical Element 1' }
Noo.create! name: 'Historical Element 2'
ts_eval(first_noo) { update! name: 'Historical Element 3' }
ts_eval($t.noo) { update! name: 'Historical Element 3' }
end

0 comments on commit c032324

Please sign in to comment.