Don't cross 80 line boundary
This commit is contained in:
parent
ee636bf958
commit
08583e9073
@ -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
|
||||
|
@ -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') }
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user