Kapil Sachdev
3e88500318
fix(rubocop): Fix Style, Layout, Lint and other offenses [ci skip]
...
Updated Layout/LineLength cop to Max 120 lenght and ignore everything
inside specs/**/*
Added rules for below cops in .rubocop.yml
Lint/AmbiguousBlockAssociation
Naming/HeredocDelimiterNaming
Rails/SkipsModelValidations
Style/FormatStringToken
Fixed below mentioned cops:
- Layout/CaseIndentation
- Layout/DotPosition
- Layout/ElseAlignment
- Layout/IndentationWidth
- Layout/LineLength
- Layout/MultilineBlockLayout
- Layout/MultilineOperationIndentation
- Lint/AmbiguousBlockAssociation
- Lint/MissingCopEnableDirective
- Lint/NestedMethodDefinition
- Lint/RedundantCopDisableDirective
- Lint/RedundantRequireStatement
- Lint/UnusedBlockArgument
- Lint/UnusedMethodArgument
- Metrics/ModuleLength
- Naming/MemoizedInstanceVariableName
- Naming/RescuedExceptionsVariableName
- Rails/Output
- Rails/Presence
- Security/Eval
- Security/Open
- Style/ClassCheck
- Style/CollectionMethods
- Style/ConditionalAssignment
- Style/EvalWithLocation
- Style/FormatStringToken
- Style/InverseMethods
- Style/MutableConstant
- Style/ParallelAssignment
- Style/RedundantBegin
- Style/RedundantCondition
- Style/RedundantInterpolation
- Style/RedundantSelf
- Style/RedundantSort
- Style/RescueStandardError
- Style/SafeNavigation
- Style/StringLiteralsInInterpolation
- Style/SymbolProc
2020-11-03 10:05:25 -07:00
Kapil Sachdev
ee1008de7a
fix(rubocop): Fix Layout related offenses [ci skip]
...
- Layout/EmptyLines
- Layout/EmptyLineAfterGuardClause
- Layout/TrailingEmptyLines
- Layout/EmptyLinesAroundBlockBody
- Layout/EmptyLinesAroundModuleBody
- Layout/EmptyLineAfterMagicComment
- Layout/SpaceInsidePercentLiteralDelimiters
- Layout/SpaceAroundEqualsInParameterDefault
- Layout/SpaceInsideArrayLiteralBrackets
- Layout/LeadingCommentSpace
- Layout/SpaceBeforeComment
- Layout/SpaceAroundOperators
- Layout/SpaceInsideRangeLiteral
- Layout/SpaceInsideReferenceBrackets
- Layout/SpaceInLambdaLiteral
- Layout/SpaceAfterComma
- Layout/SpaceInsideHashLiteralBraces
- Layout/TrailingWhitespace
- Layout/ArgumentAlignment
- Layout/HashAlignment
- Layout/DotPosition
- Layout/IndentationWidth
- Layout/EndAlignment
- Layout/MultilineOperationIndentation
- Layout/IndentationConsistency
- Layout/ClosingHeredocIndentation
- Layout/MultilineMethodCallBrace- Layout
- Layout/ClosingParenthesisIndentation
2020-11-03 10:05:25 -07:00
Kapil Sachdev
09bbc409ee
fix: Replace http with https [ci skip]
2020-08-27 14:11:57 -06:00
Elliot Winkler
32705e6c37
Replace the with_port qualifier on route with port option
2018-01-25 22:31:23 -06:00
Elliot Winkler
b4e0bcea3f
Add with_port qualifier to the route matcher
2018-01-25 21:37:18 -06:00
Elliot Winkler
afa6a7b666
Update RSpec test style across docs
...
Instead of using
describe Foo do
# ...
end
use
RSpec.describe Foo, type: :model do
# ...
end
instead. This is not exactly official, as the former style still works,
but the latter style is highly suggested in RSpec documentation and the
like, so this is what people are used to.
[ci skip]
2016-06-15 18:02:07 -06:00
Elliot Winkler
142366ef16
Refer to Minitest in docs over Test::Unit
...
Minitest has been used instead of Test::Unit for quite some time now,
let's get with the times.
[ci skip]
2015-09-30 13:18:23 -06:00
Mauro George
32c0e62596
Drop support for RSpec 2
2015-09-22 13:12:46 -06:00
Mauro George
15359eb6ec
The route matcher accepts a format as a symbol
2015-04-02 08:02:19 -06:00
Elliot Winkler
190007155e
Remove auto-detection of Rails / test framework
2015-02-09 10:52:51 -07:00
Elliot Winkler
c22d7c89e0
Extract examples in README to inline documentation
2014-06-20 16:41:27 -06:00
Yukio Mizuta
90c4a7d215
Use __send__ instead of send
2014-02-01 13:09:44 -08:00
Elliot Winkler
fcbb5c485e
Convert to 1.9 hash syntax
2014-01-17 13:20:44 -07:00
Christopher Chow
1878e89a13
Update deprecated matcher protocol for RSpec 3.
...
The methods failure_message_for_should and failure_message_for_should_not
have been updated to failure_message and failure_message_negated respectively.
Alias to the old methods to remain backwards compatibility with RSpec 2.
2013-12-24 22:34:26 +11:00
Mauro George
b8038a235a
RouteMatcher#to accepts a string as first param
...
Some refactor
2013-10-23 13:46:55 -06:00
Brian Shaver
4f8684c6db
Rename failure_message and negative_failure_message
...
* fixes #108 : RSpec 2.10 compatibility
* remove unnecessary attr_readr
2013-03-08 14:49:12 -05:00
Gabe Berke-Williams
af8f9a7bff
Use current thoughtbot style in specs
2012-12-26 22:45:54 -05:00
Gabe Berke-Williams
36006d83b4
Mutate less.
2012-03-30 10:44:46 -04:00
Shaliko
12455aeb67
Edited lib/shoulda/matchers/action_controller/route_matcher.rb via GitHub
2011-08-26 18:52:32 +04:00
Shaliko Usubov
f6511a3fcd
Fixed syntax error
2011-08-25 22:35:02 +04:00
Timothy Yen
404d1f4ee8
Added shoulda/matchers/assertion_error that assigns based on the current Ruby version.
2011-02-17 13:37:30 -05:00
Joe Ferris
56b0a0439e
Move into the Matchers namespace
2010-12-15 17:34:19 -05:00