From d4c962e471824a0d4530114f13145fecfea6b529 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Sat, 16 Mar 2024 04:10:45 +0200 Subject: [PATCH] Remove a redundant test --- spec/robe/sash/doc_for_spec.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/spec/robe/sash/doc_for_spec.rb b/spec/robe/sash/doc_for_spec.rb index 1d2e9d2..e077d29 100644 --- a/spec/robe/sash/doc_for_spec.rb +++ b/spec/robe/sash/doc_for_spec.rb @@ -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")