Skip to content

Commit

Permalink
Add rspec and update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
janikrabe committed Mar 10, 2018
1 parent 24657ab commit 5127bc3
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,4 +5,5 @@
/doc/
/pkg/
/spec/reports/
/spec/examples.txt
/tmp/
1 change: 1 addition & 0 deletions .rspec
@@ -0,0 +1 @@
--require spec_helper
23 changes: 19 additions & 4 deletions Gemfile.lock
Expand Up @@ -11,6 +11,7 @@ GEM
specs:
ast (2.4.0)
cinch (2.3.4)
diff-lcs (1.3)
mustermann (1.0.2)
parallel (1.12.1)
parser (2.5.0.3)
Expand All @@ -21,9 +22,22 @@ GEM
rack
rainbow (3.0.0)
rake (12.3.0)
rubocop (0.52.1)
rspec (3.7.0)
rspec-core (~> 3.7.0)
rspec-expectations (~> 3.7.0)
rspec-mocks (~> 3.7.0)
rspec-core (3.7.1)
rspec-support (~> 3.7.0)
rspec-expectations (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-mocks (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-support (3.7.1)
rubocop (0.53.0)
parallel (~> 1.10)
parser (>= 2.4.0.2, < 3.0)
parser (>= 2.5)
powerpack (~> 0.1)
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
Expand All @@ -44,8 +58,9 @@ PLATFORMS
DEPENDENCIES
bundler (~> 1.16)
codebot!
rake (~> 12.0)
rubocop (~> 0.52.1)
rake (~> 12.3)
rspec (~> 3.7)
rubocop (~> 0.53)

BUNDLED WITH
1.16.1
7 changes: 4 additions & 3 deletions codebot.gemspec
@@ -1,6 +1,6 @@
# frozen_string_literal: true

lib = File.expand_path('../lib', __FILE__)
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'codebot/metadata'
Expand Down Expand Up @@ -38,8 +38,9 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = '>= 2.2.0'

spec.add_development_dependency 'bundler', '~> 1.16'
spec.add_development_dependency 'rake', '~> 12.0'
spec.add_development_dependency 'rubocop', '~> 0.52.1'
spec.add_development_dependency 'rake', '~> 12.3'
spec.add_development_dependency 'rspec', '~> 3.7'
spec.add_development_dependency 'rubocop', '~> 0.53'

spec.add_runtime_dependency 'cinch', '~> 2.3'
spec.add_runtime_dependency 'sinatra', '~> 2.0'
Expand Down
22 changes: 22 additions & 0 deletions spec/spec_helper.rb
@@ -0,0 +1,22 @@
# frozen_string_literal: true

RSpec.configure do |config|
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
end

config.mock_with :rspec do |mocks|
mocks.verify_partial_doubles = true
end

config.shared_context_metadata_behavior = :apply_to_host_groups
config.example_status_persistence_file_path = 'spec/examples.txt'
config.disable_monkey_patching!
config.warnings = true

config.default_formatter = 'doc' if config.files_to_run.one?

config.profile_examples = 10
config.order = :random
Kernel.srand config.seed
end

0 comments on commit 5127bc3

Please sign in to comment.