Skip to content

Commit

Permalink
Simplify __FILE__ specs and fix descriptions to be unique
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Feb 4, 2022
1 parent e2be17e commit c913a1e
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions spec/ruby/language/file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,10 @@
end
end

describe "The __FILE__ pseudo-variable" do
it_behaves_like :language___FILE__, :require, CodeLoadingSpecs::Method.new
end

describe "The __FILE__ pseudo-variable" do
describe "The __FILE__ pseudo-variable with require" do
it_behaves_like :language___FILE__, :require, Kernel
end

describe "The __FILE__ pseudo-variable" do
it_behaves_like :language___FILE__, :load, CodeLoadingSpecs::Method.new
end

describe "The __FILE__ pseudo-variable" do
describe "The __FILE__ pseudo-variable with load" do
it_behaves_like :language___FILE__, :load, Kernel
end

0 comments on commit c913a1e

Please sign in to comment.