spec/helper.rb -> spec/spec_helper.rb

`helper.rb` is a legacy name from Bacon days. Since we use RSpec, the convention
is to use `spec/spec_helper.rb`. Applying the principle of least astonishment
here.
This commit is contained in:
Kyrylo Silin 2019-03-07 23:12:47 +02:00
parent 8e7ae26825
commit e5914564a8
4 changed files with 3 additions and 5 deletions

2
.rspec
View File

@ -1,2 +1,2 @@
--color
--require helper
--require spec_helper

View File

@ -65,11 +65,11 @@ describe Pry::Code do
end
it 'finds files in a relative directory with `.rb` extension' do
expect(Pry::Code.from_file('../helper.rb').code_type).to eq :ruby
expect(Pry::Code.from_file('../spec_helper.rb').code_type).to eq :ruby
end
it 'finds files in a relative directory with `.rb` omitted' do
expect(Pry::Code.from_file('../helper').code_type).to eq :ruby
expect(Pry::Code.from_file('../spec_helper').code_type).to eq :ruby
end
it "doesn't confuse files with the same name, but without an extension" do

View File

@ -1,5 +1,3 @@
require_relative 'helper'
describe Pry::Ring do
let(:ring) { described_class.new(3) }