diff --git a/index.json b/index.json index 4ca6d792..5d9bf094 100644 --- a/index.json +++ b/index.json @@ -107,6 +107,22 @@ "rainbow/version" ] }, + "rspec-core": { + "dependencies": [ + "rspec" + ], + "requires": [ + "rspec" + ] + }, + "rspec-expectations": { + "dependencies": [ + "rspec" + ], + "requires": [ + "rspec" + ] + }, "shopify-money": { "requires": [ "money" diff --git a/rbi/annotations/rspec-core.rbi b/rbi/annotations/rspec-core.rbi new file mode 100644 index 00000000..7ab0e506 --- /dev/null +++ b/rbi/annotations/rspec-core.rbi @@ -0,0 +1,11 @@ +# typed: true + +class RSpec::Core::ExampleGroup + class << self + sig { params(args: T.untyped, example_group_block: T.proc.bind(T.class_of(RSpec::Core::ExampleGroup)).void).void } + def describe(*args, &example_group_block); end + + sig { params(all_args: T.untyped, block: T.proc.bind(RSpec::Matchers).void).void } + def it(*all_args, &block); end + end +end diff --git a/rbi/annotations/rspec-expectations.rbi b/rbi/annotations/rspec-expectations.rbi new file mode 100644 index 00000000..8878e0e9 --- /dev/null +++ b/rbi/annotations/rspec-expectations.rbi @@ -0,0 +1,8 @@ +# typed: true + +module RSpec + class << self + sig { params(args: T.untyped, example_group_block: T.proc.bind(T.class_of(RSpec::Core::ExampleGroup)).void).void } + def describe(*args, &example_group_block); end + end +end