From 2fc3597307671469489ba7bb01139166fadb510c Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sat, 7 Apr 2018 00:04:14 +0100 Subject: [PATCH] Move specs into specs/lib --- .rubocop.yml | 12 ++++++++++++ spec/bunnyrun_spec.rb | 13 ------------- spec/lib/bunnyrun_spec.rb | 9 +++++++++ 3 files changed, 21 insertions(+), 13 deletions(-) delete mode 100644 spec/bunnyrun_spec.rb create mode 100644 spec/lib/bunnyrun_spec.rb diff --git a/.rubocop.yml b/.rubocop.yml index f5c5db1..53121be 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -9,3 +9,15 @@ Documentation: Style/HashSyntax: EnforcedStyle: ruby19_no_mixed_keys + +Metrics/BlockLength: + Exclude: + - spec/**/*_spec.rb + +Metrics/ModuleLength: + Exclude: + - spec/**/*_spec.rb + +RSpec/FilePath: + Exclude: + - 'spec/lib/bunnyrun_spec.rb' diff --git a/spec/bunnyrun_spec.rb b/spec/bunnyrun_spec.rb deleted file mode 100644 index bff3d4e..0000000 --- a/spec/bunnyrun_spec.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -RSpec.describe Bunnyrun do - it 'has a version number' do - expect(Bunnyrun::VERSION).not_to be nil - end - - it 'does something useful' do - expect(false).to eq(true) - end -end diff --git a/spec/lib/bunnyrun_spec.rb b/spec/lib/bunnyrun_spec.rb new file mode 100644 index 0000000..5c4659c --- /dev/null +++ b/spec/lib/bunnyrun_spec.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe BunnyRun do + it 'has a version number' do + expect(BunnyRun::VERSION).not_to be nil + end +end