Sha256: a35df656c064dccddfc5c6896b79e6b15aa479bf141e2ada9f55f96562add5ff
Contents?: true
Size: 420 Bytes
Versions: 5
Compression:
Stored size: 420 Bytes
Contents
class ActiveSupport::TestCase def self.with_current_announcement(&blk) context "When there is a current announcement" do setup do Annoucement.create!(:body => 'therefore,') end merge_block(&blk) end end def self.should_display_current_announcement should "have the current announcement in it" do assert_match Announcement.current.body, @email.body end end end
Version data entries
5 entries across 5 versions & 1 rubygems