From b7e288c634ab74578b4837c558924a2fa541b788 Mon Sep 17 00:00:00 2001 From: "Jose Fernandez (magec)" Date: Thu, 22 Sep 2016 16:15:28 +0200 Subject: [PATCH] better specs --- .rspec | 1 - spec/rubocop/cop/migrations/remove_index_spec.rb | 1 + spec/rubocop/migrations_spec.rb | 11 ----------- 3 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 spec/rubocop/migrations_spec.rb diff --git a/.rspec b/.rspec index 34c5164..8c18f1a 100644 --- a/.rspec +++ b/.rspec @@ -1,3 +1,2 @@ --format documentation --color ---require spec_helper diff --git a/spec/rubocop/cop/migrations/remove_index_spec.rb b/spec/rubocop/cop/migrations/remove_index_spec.rb index dddfbd8..9652cd2 100644 --- a/spec/rubocop/cop/migrations/remove_index_spec.rb +++ b/spec/rubocop/cop/migrations/remove_index_spec.rb @@ -1,3 +1,4 @@ +require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')) describe RuboCop::Cop::Migrations::RemoveIndex do include SharedExamples subject(:cop) { described_class.new } diff --git a/spec/rubocop/migrations_spec.rb b/spec/rubocop/migrations_spec.rb deleted file mode 100644 index cc4c97e..0000000 --- a/spec/rubocop/migrations_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe Rubocop::Migrations do - it 'has a version number' do - expect(Rubocop::Migrations::VERSION).not_to be nil - end - - it 'does something useful' do - expect(false).to eq(true) - end -end