Permalink
Browse files

fixing array checks

  • Loading branch information...
1 parent 121a743 commit 5ed46988976ff834a3b6f22779442b6db3ce9db3 @derickbailey derickbailey committed Apr 30, 2010
Showing with 7 additions and 7 deletions.
  1. +6 −6 spec/attrmethods_spec.rb
  2. +1 −1 spec/exec_spec.rb
View
12 spec/attrmethods_spec.rb
@@ -13,7 +13,7 @@ class Test_Class
end
it "should set the array to the specified values" do
- @test.test.count.should be(4)
+ @test.test.length.should be(4)
end
end
@@ -29,7 +29,7 @@ class Test_Class
end
it "should set the array to the specified values" do
- @test.test.count.should be(4)
+ @test.test.length.should be(4)
end
end
@@ -46,7 +46,7 @@ class TestClass
end
it "should set the array to the values contained in the variable" do
- @test.test.count.should be(5)
+ @test.test.length.should be(5)
end
end
@@ -62,7 +62,7 @@ class Test_Class
end
it "should set the hash to the specified values" do
- @test.test.count.should be(2)
+ @test.test.length.should be(2)
end
end
@@ -78,7 +78,7 @@ class Test_Class
end
it "should set the hash to the specified values" do
- @test.test.count.should be(2)
+ @test.test.length.should be(2)
end
end
@@ -95,6 +95,6 @@ class TestClass
end
it "should set the hash to the values contained in the variable" do
- @test.test.count.should be(3)
+ @test.test.length.should be(3)
end
end
View
2 spec/exec_spec.rb
@@ -19,7 +19,7 @@
end
it "should specify the parameters only once" do
- @cmd.system_command.scan(/--help/).count.should be(1)
+ @cmd.system_command.scan(/--help/).length.should be(1)
end
it "should not fail" do

0 comments on commit 5ed4698

Please sign in to comment.