You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.6 KiB
41 lines
1.6 KiB
From 989ee11906bb2061b2618bd1d8f128162e143a79 Mon Sep 17 00:00:00 2001
|
|
From: Olle Jonsson <olle.jonsson@gmail.com>
|
|
Date: Sun, 24 Sep 2017 19:08:58 +0200
|
|
Subject: [PATCH 3/5] Fix misspellings in comments
|
|
|
|
- found using find . | misspellings -f -
|
|
---
|
|
lib/contracts/call_with.rb | 2 +-
|
|
spec/ruby_version_specific/contracts_spec_2.1.rb | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/lib/contracts/call_with.rb b/lib/contracts/call_with.rb
|
|
index 2735d1e..c9336a1 100644
|
|
--- a/lib/contracts/call_with.rb
|
|
+++ b/lib/contracts/call_with.rb
|
|
@@ -80,7 +80,7 @@ module Contracts
|
|
# proc, block, lambda, etc
|
|
method.call(*args, &blk)
|
|
else
|
|
- # original method name referrence
|
|
+ # original method name reference
|
|
added_block = blk ? lambda { |*params| blk.call(*params) } : nil
|
|
method.send_to(this, *args, &added_block)
|
|
end
|
|
diff --git a/spec/ruby_version_specific/contracts_spec_2.1.rb b/spec/ruby_version_specific/contracts_spec_2.1.rb
|
|
index 168cfd0..36b6ede 100644
|
|
--- a/spec/ruby_version_specific/contracts_spec_2.1.rb
|
|
+++ b/spec/ruby_version_specific/contracts_spec_2.1.rb
|
|
@@ -51,7 +51,7 @@ RSpec.describe "Contracts:" do
|
|
end.to raise_error(ContractError)
|
|
end
|
|
|
|
- it "should fail when passed nil to an optional argument which contract shouldnt accept nil" do
|
|
+ it "should fail when passed nil to an optional argument which contract shouldn't accept nil" do
|
|
expect do
|
|
@o.complicated("a", true, :b, :c, 2.0, e: (1..5), f: nil, g: :d) do |x|
|
|
x
|
|
--
|
|
2.29.2
|
|
|