Kill trailing whitespace in ruby files
This commit is contained in:
@@ -6,11 +6,11 @@ class AdvertisementTest < ActiveSupport::TestCase
|
||||
Danbooru.config.stubs(:advertisement_path).returns("/tmp")
|
||||
@ad = FactoryGirl.create(:advertisement, :file => upload_jpeg("#{Rails.root}/test/files/test.jpg"))
|
||||
end
|
||||
|
||||
|
||||
teardown do
|
||||
FileUtils.rm_f(Dir.glob("#{Rails.root}/public/images/advertisements/*.jpg"))
|
||||
end
|
||||
|
||||
|
||||
should "create new hit records" do
|
||||
assert_difference("AdvertisementHit.count") do
|
||||
@ad.hit!("0.0.0.0")
|
||||
@@ -20,7 +20,7 @@ class AdvertisementTest < ActiveSupport::TestCase
|
||||
assert_equal(1, @ad.hit_sum(1.day.ago, 1.day.from_now))
|
||||
assert_equal(0, @ad.hit_sum(2.days.ago, 1.day.ago))
|
||||
end
|
||||
|
||||
|
||||
should "know its preview height and preview width" do
|
||||
assert_equal(100, @ad.preview_width)
|
||||
assert_equal(67, @ad.preview_height)
|
||||
|
||||
Reference in New Issue
Block a user