Don't cross 80 line boundary

This commit is contained in:
Marcin Kulik 2013-09-21 13:11:36 +02:00
parent ee636bf958
commit 08583e9073
3 changed files with 7 additions and 4 deletions

View File

@ -3,7 +3,7 @@ require 'spec_helper'
describe SnapshotDecorator do
let(:decorator) { described_class.new(snapshot) }
let(:snapshot) { double('snapshot', :width => 2, :height => 2, :lines => lines) }
let(:snapshot) { double('snapshot', width: 2, height: 2, lines: lines) }
let(:lines) { [ [:ab], [:c, :d] ] }
describe '#lines' do

View File

@ -75,8 +75,10 @@ describe Asciicast do
describe '#stdout' do
let(:asciicast) { Asciicast.new }
let(:data_uploader) { double('data_uploader', :decompressed_path => '/foo') }
let(:timing_uploader) { double('timing_uploader', :decompressed_path => '/bar') }
let(:data_uploader) { double('data_uploader',
:decompressed_path => '/foo') }
let(:timing_uploader) { double('timing_uploader',
:decompressed_path => '/bar') }
let(:stdout) { double('stdout', :lazy => lazy_stdout) }
let(:lazy_stdout) { double('lazy_stdout') }

View File

@ -10,7 +10,8 @@ describe AsciicastWorker do
before do
allow(Asciicast).to receive(:find).with(123) { asciicast }
allow(AsciicastProcessor).to receive(:new).with(no_args) { asciicast_processor }
allow(AsciicastProcessor).to receive(:new).
with(no_args) { asciicast_processor }
end
it 'processes given asciicast with AsciicastProcessor' do