Remove threequals from ruby files

This commit is contained in:
Thomas Cioppettini
2014-03-26 12:20:41 -07:00
parent 2beaeed36d
commit 38882eb1a7
10 changed files with 25 additions and 26 deletions

View File

@ -28,7 +28,7 @@ module Helpers
args[:title] ||= "This is my title #{Helpers.next_seq}"
user = args.delete(:user) || Fabricate(:user)
guardian = Guardian.new(user)
args[:category] = args[:category].name if Category === args[:category]
args[:category] = args[:category].name if args[:category].is_a?(Category)
TopicCreator.create(user, guardian, args)
end
@ -37,7 +37,7 @@ module Helpers
args[:raw] ||= "This is the raw body of my post, it is cool #{Helpers.next_seq}"
args[:topic_id] = args[:topic].id if args[:topic]
user = args.delete(:user) || Fabricate(:user)
args[:category] = args[:category].name if Category === args[:category]
args[:category] = args[:category].name if args[:category].is_a?(Category)
PostCreator.create(user, args)
end