Skip to content

Commit

Permalink
Add or refresh specs that we are already passing
Browse files Browse the repository at this point in the history
  • Loading branch information
richardboehme committed Jun 7, 2024
1 parent b80a291 commit 3da1c88
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions spec/core/string/element_reference_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
require_relative '../../spec_helper'
require_relative 'fixtures/classes'
require_relative 'shared/slice'

describe "String#[]" do
it_behaves_like :string_slice, :[]
end

describe "String#[] with index, length" do
it_behaves_like :string_slice_index_length, :[]
end

describe "String#[] with Range" do
it_behaves_like :string_slice_range, :[]
end

describe "String#[] with Regexp" do
it_behaves_like :string_slice_regexp, :[]
end

describe "String#[] with Regexp, index" do
it_behaves_like :string_slice_regexp_index, :[]
end

describe "String#[] with Regexp, group" do
it_behaves_like :string_slice_regexp_group, :[]
end

describe "String#[] with String" do
it_behaves_like :string_slice_string, :[]
end

describe "String#[] with Symbol" do
it_behaves_like :string_slice_symbol, :[]
end
1 change: 1 addition & 0 deletions spec/core/string/force_encoding_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: false
require_relative '../../spec_helper'

describe "String#force_encoding" do
Expand Down

0 comments on commit 3da1c88

Please sign in to comment.