From 3e63196fe2268c1ea4618a261bb18b76a81bacf6 Mon Sep 17 00:00:00 2001 From: francis Date: Tue, 15 Sep 2009 17:45:50 +0000 Subject: Change censor rules to apply to strings in place, so using less memory on large strings. Add lots of test code for censor rules. --- spec/models/user_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/models/user_spec.rb') diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 72e8ceb50..f4df22e9d 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -241,7 +241,7 @@ describe User, " when setting a profile photo" do end it "should attach it to the user" do - data = load_image_fixture("parrot.png") + data = load_file_fixture("parrot.png") profile_photo = ProfilePhoto.new(:data => data) @user.set_profile_photo(profile_photo) profile_photo.user.should == @user @@ -250,9 +250,9 @@ describe User, " when setting a profile photo" do # it "should destroy old photos being replaced" do # ProfilePhoto.count.should == 0 # -# data_1 = load_image_fixture("parrot.png") +# data_1 = load_file_fixture("parrot.png") # profile_photo_1 = ProfilePhoto.new(:data => data_1) -# data_2 = load_image_fixture("parrot.jpg") +# data_2 = load_file_fixture("parrot.jpg") # profile_photo_2 = ProfilePhoto.new(:data => data_2) # # @user.set_profile_photo(profile_photo_1) -- cgit v1.2.3