From 08583e90730cd8a2d5ae52cd870639a4fd31cb3e Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Sat, 21 Sep 2013 13:11:36 +0200 Subject: [PATCH] Don't cross 80 line boundary --- spec/decorators/snapshot_decorator_spec.rb | 2 +- spec/models/asciicast_spec.rb | 6 ++++-- spec/workers/asciicast_worker_spec.rb | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/spec/decorators/snapshot_decorator_spec.rb b/spec/decorators/snapshot_decorator_spec.rb index e2d5297..54d032f 100644 --- a/spec/decorators/snapshot_decorator_spec.rb +++ b/spec/decorators/snapshot_decorator_spec.rb @@ -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 diff --git a/spec/models/asciicast_spec.rb b/spec/models/asciicast_spec.rb index 08a4995..3336f2a 100644 --- a/spec/models/asciicast_spec.rb +++ b/spec/models/asciicast_spec.rb @@ -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') } diff --git a/spec/workers/asciicast_worker_spec.rb b/spec/workers/asciicast_worker_spec.rb index 1ede9db..97344ce 100644 --- a/spec/workers/asciicast_worker_spec.rb +++ b/spec/workers/asciicast_worker_spec.rb @@ -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