Skip to content

Commit

Permalink
Remove a redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
dgutov committed Mar 16, 2024
1 parent dbc1a64 commit d4c962e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions spec/robe/sash/doc_for_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,6 @@ def quux(a, *b, &c); end
visibility: :public})
end

it "shows docs for built-in classes" do
hash = klass.new(Hash.instance_method(:update)).format
expect(hash[:aliases]).to eq([:merge!])
if RUBY_ENGINE == "ruby"
expect(hash[:docstring]).to include("Adds the contents")
expect(hash[:source]).to include("rb_hash_foreach")
else
expect(hash[:docstring]).to eq("")
expect(hash[:source]).to start_with("def merge!(other)\n")
end
end

it "shows docs for stdlib classes" do
hash = klass.new(URI.method(:parse)).format
expect(hash[:docstring]).to include("one of the URI's subclasses")
Expand Down

0 comments on commit d4c962e

Please sign in to comment.