Permalink
Browse files

Fix some code formatting offences in the metrics

  • Loading branch information...
1 parent 79794e5 commit 62ae009bdb6c46784bb21593cb6cb5529d147e67 @misfo misfo committed Oct 5, 2013
@@ -2,7 +2,8 @@
require 'spec_helper'
-describe AbstractType::AbstractMethodDeclarations, '#abstract_singleton_method' do
+describe AbstractType::AbstractMethodDeclarations,
+ '#abstract_singleton_method' do
subject { object.abstract_singleton_method(:some_method) }
let(:object) { Class.new { include AbstractType } }
@@ -9,9 +9,11 @@
let(:klass) { Class.new }
it 'extends the klass' do
- expect(klass.singleton_class).to_not include(described_class::AbstractMethodDeclarations)
+ expect(klass.singleton_class)
+ .to_not include(described_class::AbstractMethodDeclarations)
klass.send(:include, subject)
- expect(klass.singleton_class).to include(described_class::AbstractMethodDeclarations)
+ expect(klass.singleton_class)
+ .to include(described_class::AbstractMethodDeclarations)
end
it 'delegates to the ancestor' do
@@ -71,7 +71,10 @@ def initialize(foo)
context 'called on the class' do
let(:object) { abstract_type }
- specify { expect { subject }.to raise_error(NotImplementedError, "#{object} is an abstract type") }
+ specify do
+ expect { subject }
+ .to raise_error(NotImplementedError, "#{object} is an abstract type")
+ end
end
end
end

0 comments on commit 62ae009

Please sign in to comment.