Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joegatt committed Jan 5, 2014
1 parent 5d97208 commit b38eebe
Show file tree
Hide file tree
Showing 3 changed files with 225 additions and 1 deletion.
152 changes: 152 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,155 @@ AllCops:
LineLength:
Enabled: true
Max: 119

MethodLength:
Max: 20

ClassLength:
Max: 125

CyclomaticComplexity:
Enabled: true
Max: 10

# This configuration was generated by `rubocop --auto-gen-config`.
# The point is for the user to remove these configuration records
# one by one as the offences are removed from the code base.

AlignHash:
Enabled: false

AlignParameters:
Enabled: false

BlockAlignment:
Enabled: false

Blocks:
Enabled: false

BracesAroundHashParameters:
Enabled: false

CaseIndentation:
Enabled: false

ClassLength:
Enabled: false

ClassVars:
Enabled: false

CollectionMethods:
Enabled: false

CommentAnnotation:
Enabled: false

# CyclomaticComplexity:
# Enabled: true

Documentation:
Enabled: false

EmptyLines:
Enabled: false

EmptyLinesAroundAccessModifier:
Enabled: false

EmptyLinesAroundBody:
Enabled: false

EmptyLiteral:
Enabled: false

FavorUnlessOverNegatedIf:
Enabled: false

FinalNewline:
Enabled: false

HashSyntax:
Enabled: false

IndentationWidth:
Enabled: false

Lambda:
Enabled: false

LeadingCommentSpace:
Enabled: false

LineLength:
Enabled: false

MethodLength:
Enabled: false

MultilineTernaryOperator:
Enabled: false

NestedTernaryOperator:
Enabled: false

NilComparison:
Enabled: false

ParameterLists:
Enabled: false

ParenthesesAroundCondition:
Enabled: false

ParenthesesAsGroupedExpression:
Enabled: false

PerlBackrefs:
Enabled: false

RedundantSelf:
Enabled: false

RegexpLiteral:
Enabled: false

SignalException:
Enabled: false

SpaceAroundBlockBraces:
Enabled: false

SpaceAroundEqualsInParameterDefault:
Enabled: false

SpaceAroundOperators:
Enabled: false

SpaceInsideBrackets:
Enabled: false

SpaceInsideParens:
Enabled: false

StringLiterals:
Enabled: false

Tab:
Enabled: false

TrailingWhitespace:
Enabled: false

UselessAssignment:
Enabled: false

Void:
Enabled: false

WhileUntilDo:
Enabled: false

WordArray:
Enabled: false
5 changes: 4 additions & 1 deletion spec/models/pantograph_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

describe Pantograph do

before { @pantograph = FactoryGirl.build_stubbed(:pantograph) }
before do
@pantographer = FactoryGirl.create(:pantographer)
@pantograph = FactoryGirl.build_stubbed(:pantograph)
end

subject { @pantograph }

Expand Down
69 changes: 69 additions & 0 deletions spec/vcr_cassettes/model.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b38eebe

Please sign in to comment.