Skip to content

Commit

Permalink
Add RuboCop RSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
pointlessone committed Jan 30, 2017
1 parent d88e501 commit 935555f
Show file tree
Hide file tree
Showing 72 changed files with 9,276 additions and 9,352 deletions.
14 changes: 14 additions & 0 deletions .rubocop.yml
@@ -1,3 +1,17 @@
require: rubocop-rspec

RSpec/ExampleLength:
Enabled: false

RSpec/MultipleExpectations:
Enabled: false

RSpec/NestedGroups:
Max: 5

RSpec/NotToNot:
EnforcedStyle: to_not

# This file shows examples on how to instantiate a document in multiple ways,
# it does not actually do the instantiation and isn't actually shadowing any
# variables.
Expand Down
6 changes: 3 additions & 3 deletions lib/prawn/text.rb
Expand Up @@ -17,11 +17,11 @@ module Text
include Prawn::Text::Formatted

# No-Break Space
Prawn::Text::NBSP = ' '.freeze
NBSP = "\u00A0".freeze
# Zero Width Space (indicate word boundaries without a space)
Prawn::Text::ZWSP = [8203].pack('U')
ZWSP = "\u200B".freeze
# Soft Hyphen (invisible, except when causing a line break)
Prawn::Text::SHY = '­'.freeze
SHY = "\u00AD".freeze

# @group Stable API

Expand Down
1 change: 1 addition & 0 deletions prawn.gemspec
Expand Up @@ -43,6 +43,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency('prawn-manual_builder', '>= 0.2.0')
spec.add_development_dependency('pdf-reader', '~>1.2')
spec.add_development_dependency('rubocop', '~> 0.47.1')
spec.add_development_dependency('rubocop-rspec', '~> 1.10')

spec.homepage = 'http://prawn.majesticseacreature.com'
spec.description = <<END_DESC
Expand Down
33 changes: 0 additions & 33 deletions spec/acceptance/png_spec.rb

This file was deleted.

78 changes: 0 additions & 78 deletions spec/annotations_spec.rb

This file was deleted.

0 comments on commit 935555f

Please sign in to comment.