From 3c0aea25fa3a649a7f36c202279ff8a26c2def9f Mon Sep 17 00:00:00 2001 From: John Mileham Date: Wed, 23 Feb 2011 11:13:59 -0500 Subject: [PATCH] readonly_attributes are now a Set instead of Array --- .../matchers/active_record/have_readonly_attribute_matcher.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb b/lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb index 55724ab5..4dd37294 100644 --- a/lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb +++ b/lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb @@ -29,7 +29,7 @@ module Shoulda # :nodoc: "is not read-only" else @failure_message = "#{class_name} is making " << - "#{readonly_attributes.to_sentence} " << + "#{readonly_attributes.to_a.to_sentence} " << "read-only, but not #{@attribute}." end false