soften the lightbox overlay

This commit is contained in:
Régis Hanol
2013-06-26 02:44:20 +02:00
parent 92562c2090
commit d3eae56e71
3 changed files with 74 additions and 44 deletions

View File

@ -126,6 +126,28 @@ describe CookedPostProcessor do
end
end
context "with a large image" do
let(:user) { Fabricate(:user) }
let(:topic) { Fabricate(:topic, user: user) }
let(:post) { Fabricate.build(:post_with_uploads, topic: topic, user: user) }
let(:processor) { CookedPostProcessor.new(post) }
before do
FastImage.stubs(:size).returns([1000, 1000])
processor.post_process_images
end
it "generates overlay information" do
processor.html.should =~ /class="lightbox"/
processor.html.should =~ /class="meta"/
processor.html.should =~ /class="filename"/
processor.html.should =~ /class="informations"/
processor.html.should =~ /class="expand"/
end
end
end
context 'link convertor' do