Skip to content

Commit 54e4a18

Browse files
committed
Small fixes after reviewing recent changes
1 parent 476958e commit 54e4a18

5 files changed

Lines changed: 7 additions & 6 deletions

File tree

core/complex/rect_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
end
88

99
describe "Complex.rect" do
10-
it "is an alias of Complex#rectangular" do
10+
it "is an alias of Complex.rectangular" do
1111
Complex.method(:rect).should == Complex.method(:rectangular)
1212
end
1313
end

core/struct/deconstruct_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require_relative '../../spec_helper'
22

33
describe "Struct#deconstruct" do
4-
it "is an alias for Struct#to_a" do
4+
it "is an alias of Struct#to_a" do
55
Struct.instance_method(:deconstruct).should == Struct.instance_method(:to_a)
66
end
77
end

core/struct/size_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
require_relative 'shared/accessor'
44

55
describe "Struct#size" do
6-
it "is a synonym for length" do
7-
StructClasses::Car.new.size.should == StructClasses::Car.new.length
6+
it "returns the number of attributes" do
7+
StructClasses::Car.new('Cadillac', 'DeVille').length.should == 3
8+
StructClasses::Car.new.length.should == 3
89
end
910

1011
it_behaves_like :struct_accessor, :size

core/symbol/to_sym_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
describe "Symbol#to_sym" do
44
it "returns self" do
55
[:rubinius, :squash, :[], :@ruby, :@@ruby].each do |sym|
6-
sym.to_sym.should == sym
6+
sym.to_sym.should.equal?(sym)
77
end
88
end
99
end

language/predefined_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ def obj.foo2; yield; end
11031103
end
11041104

11051105
describe "Global variable $\"" do
1106-
it "is an alias for $LOADED_FEATURES" do
1106+
it "is an alias of $LOADED_FEATURES" do
11071107
$".should.equal? $LOADED_FEATURES
11081108
end
11091109

0 commit comments

Comments
 (0)