Skip to content

Commit

Permalink
Add a test for state.now
Browse files Browse the repository at this point in the history
  • Loading branch information
hopsoft committed Feb 13, 2024
1 parent 038524d commit 1c19d73
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/turbo_boost/commands/state_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,11 @@ class TurboBoost::Commands::StateTest < ActiveSupport::TestCase
restored = TurboBoost::Commands::State.from_sgid_param(sgid)
assert_equal "value", restored.read(:example)
end

test "state.now cannot have a now" do
state = TurboBoost::Commands::State.new
assert_instance_of TurboBoost::Commands::State, state
assert_instance_of TurboBoost::Commands::State, state.now
assert_nil state.now.now
end
end

0 comments on commit 1c19d73

Please sign in to comment.