summaryrefslogtreecommitdiff
path: root/spec/ruby/core/proc/shared
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2019-06-27 21:21:33 +0200
committerBenoit Daloze <eregontp@gmail.com>2019-06-27 21:21:33 +0200
commita2091c3023a6741049d20beffbe8c94c2d5f4732 (patch)
tree0635b0f178496c38c1418d88533e99fb272c7b79 /spec/ruby/core/proc/shared
parent632a97227e0821bd7bedcf3f053b16e6b0b753fa (diff)
Update to ruby/spec@94d98ff
Diffstat (limited to 'spec/ruby/core/proc/shared')
-rw-r--r--spec/ruby/core/proc/shared/to_s.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/core/proc/shared/to_s.rb b/spec/ruby/core/proc/shared/to_s.rb
index de021692e2..59fcf5bef0 100644
--- a/spec/ruby/core/proc/shared/to_s.rb
+++ b/spec/ruby/core/proc/shared/to_s.rb
@@ -4,7 +4,7 @@ describe :proc_to_s, shared: true do
Proc.new { "hello" }.send(@method).should =~ /^#<Proc:([^ ]*?)(@([^ ]*)\/to_s\.rb:4)?>$/
end
- it "has an BINARY encoding" do
+ it "has a binary encoding" do
Proc.new { "hello" }.send(@method).encoding.should == Encoding::BINARY
end
end
@@ -14,7 +14,7 @@ describe :proc_to_s, shared: true do
lambda { "hello" }.send(@method).should =~ /^#<Proc:([^ ]*?)(@([^ ]*)\/to_s\.rb:10)? \(lambda\)>$/
end
- it "has an BINARY encoding" do
+ it "has a binary encoding" do
lambda { "hello" }.send(@method).encoding.should == Encoding::BINARY
end
end
@@ -24,7 +24,7 @@ describe :proc_to_s, shared: true do
proc { "hello" }.send(@method).should =~ /^#<Proc:([^ ]*?)(@([^ ]*)\/to_s\.rb:16)?>$/
end
- it "has an BINARY encoding" do
+ it "has a binary encoding" do
proc { "hello" }.send(@method).encoding.should == Encoding::BINARY
end
end
@@ -35,7 +35,7 @@ describe :proc_to_s, shared: true do
method("hello").to_proc.send(@method).should =~ /^#<Proc:([^ ]*?)(@([^ ]*)\/to_s\.rb:22)? \(lambda\)>$/
end
- it "has an BINARY encoding" do
+ it "has a binary encoding" do
def hello; end
method("hello").to_proc.send(@method).encoding.should == Encoding::BINARY
end
@@ -47,7 +47,7 @@ describe :proc_to_s, shared: true do
proc.send(@method).should =~ /^#<Proc:0x\h+\(&:foobar\)>$/
end
- it "has an BINARY encoding" do
+ it "has a binary encoding" do
proc = :foobar.to_proc
proc.send(@method).encoding.should == Encoding::BINARY
end