From a72a09a24c916cf5154a8f6417fc405fc8bc0452 Mon Sep 17 00:00:00 2001 From: Dennis Collinson Date: Tue, 7 Feb 2012 19:37:38 -0800 Subject: [PATCH] posts made by nsfw people are marked nsfw by default --- spec/models/status_message_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/models/status_message_spec.rb b/spec/models/status_message_spec.rb index cd574d15b..38189d12f 100644 --- a/spec/models/status_message_spec.rb +++ b/spec/models/status_message_spec.rb @@ -66,7 +66,7 @@ describe StatusMessage do end end - describe ".guids_for_author" do + describe ".guids_for_author" do it 'returns an array of the status_message guids' do sm1 = Factory(:status_message, :author => alice.person) sm2 = Factory(:status_message, :author => bob.person) @@ -226,15 +226,15 @@ STR end end - describe "#nsfw?" do + describe "#nsfw" do it 'returns MatchObject (true) if the post contains #nsfw (however capitalised)' do status = Factory(:status_message, :text => "This message is #nSFw") - status.nsfw?.should be_true + status.nsfw.should be_true end it 'returns nil (false) if the post does not contain #nsfw' do status = Factory(:status_message, :text => "This message is #sFW") - status.nsfw?.should be_false + status.nsfw.should be_false end end