Skip to content

Commit

Permalink
Merge pull request #200 from ifad/chore/add-noo-to-global
Browse files Browse the repository at this point in the history
Add `noo` to global table
  • Loading branch information
tagliala authored Jun 2, 2023
2 parents 12e3f1d + c032324 commit 8a08cae
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 8a08cae

Please sign in to comment.