def find(*args) method = description_args.first.sub(' ', '_') Post.send(method, *args) end describe "today" do it "should show the post for tomorrow" do find("tomorrow").map(&:text).should include("Tomorrow's post") end end describe "yesterday" do it "should be able find yesterday, given a Date" do find(Date.today).map(&:text).should include("Yesterday's post") end end describe "tomorrow" do it "should be able find tomorrow, given a Date" do find(Date.today).map(&:text).should include("Tomorrow's post") end end