Skip to content

Commit

Permalink
Remove legacy Sandbox implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepingkingstudios committed Jul 30, 2024
1 parent 45dff32 commit b6d1d99
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 86 deletions.
2 changes: 2 additions & 0 deletions lib/rspec/sleeping_king_studios/sandbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

require 'stringio'

require 'rspec/core/sandbox'

require 'rspec/sleeping_king_studios'

module RSpec::SleepingKingStudios
Expand Down
4 changes: 1 addition & 3 deletions spec/integration/deferred/custom_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

require 'rspec/sleeping_king_studios/deferred/examples'

require 'support/sandbox'

RSpec.describe RSpec::SleepingKingStudios::Deferred::Examples do
let(:fixture_file) do
%w[spec/integration/deferred/custom_spec.fixture.rb]
end
let(:result) do
Spec::Support::Sandbox.run(fixture_file)
RSpec::SleepingKingStudios::Sandbox.run(fixture_file)
end
let(:expected_examples) do
<<~EXAMPLES.lines.map(&:strip)
Expand Down
4 changes: 1 addition & 3 deletions spec/integration/deferred/example_groups_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

require 'rspec/sleeping_king_studios/deferred/examples'

require 'support/sandbox'

RSpec.describe RSpec::SleepingKingStudios::Deferred::Examples do
let(:fixture_file) do
%w[spec/integration/deferred/example_groups_spec.fixture.rb]
end
let(:result) do
Spec::Support::Sandbox.run(fixture_file)
RSpec::SleepingKingStudios::Sandbox.run(fixture_file)
end
let(:expected_examples) do
<<~EXAMPLES.lines.map(&:strip)
Expand Down
4 changes: 1 addition & 3 deletions spec/integration/deferred/examples_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

require 'rspec/sleeping_king_studios/deferred/examples'

require 'support/sandbox'

RSpec.describe RSpec::SleepingKingStudios::Deferred::Examples do
let(:fixture_file) do
%w[spec/integration/deferred/examples_spec.fixture.rb]
end
let(:result) do
Spec::Support::Sandbox.run(fixture_file)
RSpec::SleepingKingStudios::Sandbox.run(fixture_file)
end
let(:expected_examples) do
<<~EXAMPLES.lines.map(&:strip)
Expand Down
4 changes: 1 addition & 3 deletions spec/integration/deferred/helpers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

require 'rspec/sleeping_king_studios/deferred/examples'

require 'support/sandbox'

RSpec.describe RSpec::SleepingKingStudios::Deferred::Examples do
let(:fixture_file) do
%w[spec/integration/deferred/helpers_spec.fixture.rb]
end
let(:result) do
Spec::Support::Sandbox.run(fixture_file)
RSpec::SleepingKingStudios::Sandbox.run(fixture_file)
end
let(:expected_examples) do
<<~EXAMPLES.lines.map(&:strip)
Expand Down
3 changes: 1 addition & 2 deletions spec/integration/deferred/hooks_inheritance_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
require 'rspec/sleeping_king_studios/deferred/examples'

require 'support/integration/deferred/hooks_inheritance_examples'
require 'support/sandbox'

RSpec.describe RSpec::SleepingKingStudios::Deferred::Examples do
let(:fixture_file) do
%w[spec/integration/deferred/hooks_inheritance_spec.fixture.rb]
end
let(:result) do
Spec::Support::Sandbox.run(fixture_file)
RSpec::SleepingKingStudios::Sandbox.run(fixture_file)
end
let(:recorded) do
Spec::Integration::Deferred::HooksInheritanceExamples::Recorder
Expand Down
3 changes: 1 addition & 2 deletions spec/integration/deferred/hooks_ordering_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
require 'rspec/sleeping_king_studios/deferred/examples'

require 'support/integration/deferred/hooks_ordering_examples'
require 'support/sandbox'

RSpec.describe RSpec::SleepingKingStudios::Deferred::Examples do
let(:fixture_file) do
%w[spec/integration/deferred/hooks_ordering_spec.fixture.rb]
end
let(:result) do
Spec::Support::Sandbox.run(fixture_file)
RSpec::SleepingKingStudios::Sandbox.run(fixture_file)
end
let(:recorded) do
Spec::Integration::Deferred::HooksOrderingExamples::Recorder
Expand Down
4 changes: 1 addition & 3 deletions spec/integration/deferred/inheritance_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

require 'rspec/sleeping_king_studios/deferred/examples'

require 'support/sandbox'

RSpec.describe RSpec::SleepingKingStudios::Deferred::Examples do
let(:fixture_file) do
%w[spec/integration/deferred/inheritance_spec.fixture.rb]
end
let(:result) do
Spec::Support::Sandbox.run(fixture_file)
RSpec::SleepingKingStudios::Sandbox.run(fixture_file)
end
let(:expected_examples) do
<<~EXAMPLES.lines.map(&:strip)
Expand Down
4 changes: 1 addition & 3 deletions spec/integration/deferred/missing_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

require 'rspec/sleeping_king_studios/deferred/examples'

require 'support/sandbox'

RSpec.describe RSpec::SleepingKingStudios::Deferred::Examples do
let(:fixture_file) do
%w[spec/integration/deferred/missing_spec.fixture.rb]
end
let(:result) do
Spec::Support::Sandbox.run(fixture_file)
RSpec::SleepingKingStudios::Sandbox.run(fixture_file)
end
let(:expected_examples) do
<<~EXAMPLES.lines.map(&:strip)
Expand Down
4 changes: 1 addition & 3 deletions spec/integration/deferred/optional_helpers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

require 'rspec/sleeping_king_studios/deferred/examples'

require 'support/sandbox'

RSpec.describe RSpec::SleepingKingStudios::Deferred::Examples do
let(:fixture_file) do
%w[spec/integration/deferred/optional_helpers_spec.fixture.rb]
end
let(:result) do
Spec::Support::Sandbox.run(fixture_file)
RSpec::SleepingKingStudios::Sandbox.run(fixture_file)
end
let(:expected_examples) do
<<~EXAMPLES.lines.map(&:strip)
Expand Down
4 changes: 1 addition & 3 deletions spec/integration/deferred/parameterized_examples_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

require 'rspec/sleeping_king_studios/deferred/examples'

require 'support/sandbox'

RSpec.describe RSpec::SleepingKingStudios::Deferred::Examples do
let(:fixture_file) do
%w[spec/integration/deferred/parameterized_examples_spec.fixture.rb]
end
let(:result) do
Spec::Support::Sandbox.run(fixture_file)
RSpec::SleepingKingStudios::Sandbox.run(fixture_file)
end
let(:expected_examples) do
<<~EXAMPLES.lines.map(&:strip)
Expand Down
4 changes: 1 addition & 3 deletions spec/integration/deferred/parameterized_focused_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

require 'rspec/sleeping_king_studios/deferred/examples'

require 'support/sandbox'

RSpec.describe RSpec::SleepingKingStudios::Deferred::Examples do
let(:fixture_file) do
%w[spec/integration/deferred/parameterized_focused_spec.fixture.rb]
end
let(:result) do
Spec::Support::Sandbox.run(fixture_file)
RSpec::SleepingKingStudios::Sandbox.run(fixture_file)
end
let(:expected_examples) do
<<~EXAMPLES.lines.map(&:strip)
Expand Down
4 changes: 1 addition & 3 deletions spec/integration/deferred/parameterized_skipped_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

require 'rspec/sleeping_king_studios/deferred/examples'

require 'support/sandbox'

RSpec.describe RSpec::SleepingKingStudios::Deferred::Examples do
let(:fixture_file) do
%w[spec/integration/deferred/parameterized_skipped_spec.fixture.rb]
end
let(:result) do
Spec::Support::Sandbox.run(fixture_file)
RSpec::SleepingKingStudios::Sandbox.run(fixture_file)
end
let(:expected_examples) do
<<~EXAMPLES.lines.map(&:strip)
Expand Down
4 changes: 1 addition & 3 deletions spec/integration/deferred/shared_examples_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

require 'rspec/sleeping_king_studios/deferred/examples'

require 'support/sandbox'

RSpec.describe RSpec::SleepingKingStudios::Deferred::Examples do
let(:fixture_file) do
%w[spec/integration/deferred/shared_examples_spec.fixture.rb]
end
let(:result) do
Spec::Support::Sandbox.run(fixture_file)
RSpec::SleepingKingStudios::Sandbox.run(fixture_file)
end
let(:expected_examples) do
<<~EXAMPLES.lines.map(&:strip)
Expand Down
4 changes: 1 addition & 3 deletions spec/integration/deferred/wrapped_contexts_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

require 'rspec/sleeping_king_studios/deferred/examples'

require 'support/sandbox'

RSpec.describe RSpec::SleepingKingStudios::Deferred::Examples do
let(:fixture_file) do
%w[spec/integration/deferred/wrapped_contexts_spec.fixture.rb]
end
let(:result) do
Spec::Support::Sandbox.run(fixture_file)
RSpec::SleepingKingStudios::Sandbox.run(fixture_file)
end
let(:expected_examples) do
<<~EXAMPLES.lines.map(&:strip)
Expand Down
46 changes: 0 additions & 46 deletions spec/support/sandbox.rb

This file was deleted.

0 comments on commit b6d1d99

Please sign in to comment.