rex/parallel/shared_state/spec/state_spec.rb

tests/_examples/rex/parallel/shared_state/spec/state_spec.rb in the metorex repository.

RSpec.describe "a settings writer" do
  it "turns on the dark theme" do
    $theme = :dark
  end
end

RSpec.describe "a settings reader" do
  it "sees the theme the writer set" do
    expect($theme).to eq(:dark)
  end
end