---
src/spec/models/pool_spec.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/spec/models/pool_spec.rb b/src/spec/models/pool_spec.rb
index adedc16..62c04e1 100644
--- a/src/spec/models/pool_spec.rb
+++ b/src/spec/models/pool_spec.rb
@@ -19,7 +19,7 @@ describe Pool do
u.name = ('a' * 256)
u.valid?.should be_false
u.errors[:name].should_not be_nil
- u.errors[:name].should =~ /^is too long.*/
+ u.errors[:name][0].should =~ /^is too long.*/
end
it "should not be destroyable when it has running instances" do
--
1.7.6