Commit 5efb43fe by Ryan Bigg

Implement I_AM_THE_DESTROYER

parent 46cfbd30
......@@ -120,6 +120,17 @@ class ActiveRecord::Base
}
end
# Please do not use this method in production.
# Pretty please.
def self.I_AM_THE_DESTROYER!
# TODO: actually implement spelling error fixes
puts %Q{
Sharon: "There should be a method called I_AM_THE_DESTROYER!"
Ryan: "What should this method do?"
Sharon: "It should fix all the spelling errors on the page!"
}
end
def self.paranoid? ; false ; end
def paranoid? ; self.class.paranoid? ; end
......
......@@ -350,6 +350,15 @@ class ParanoiaTest < Test::Unit::TestCase
# essentially, we're just ensuring that this doesn't crash
end
def test_i_am_the_destroyer
output = capture(:stdout) { ParanoidModel.I_AM_THE_DESTROYER! }
assert_equal %Q{
Sharon: "There should be a method called I_AM_THE_DESTROYER!"
Ryan: "What should this method do?"
Sharon: "It should fix all the spelling errors on the page!"
}, output
end
private
def get_featureful_model
FeaturefulModel.new(:name => "not empty")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment