diff --git a/configstruct.gemspec b/configstruct.gemspec index 16b1482..fb00573 100644 --- a/configstruct.gemspec +++ b/configstruct.gemspec @@ -19,7 +19,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency "bundler", "~> 1.6" spec.add_development_dependency "rake" - spec.add_development_dependency 'rspec' + spec.add_development_dependency 'rspec', "~> 3.0" spec.add_development_dependency 'coveralls' - spec.add_development_dependency 'codeclimate-test-reporter' end diff --git a/spec/lib/configstruct_spec.rb b/spec/lib/configstruct_spec.rb index e4a7200..7178144 100644 --- a/spec/lib/configstruct_spec.rb +++ b/spec/lib/configstruct_spec.rb @@ -23,7 +23,7 @@ subject { ConfigStruct.new options } it 'then a config file is created calling' do expect(subject.basefile).to eq basefile - expect(File.exist? basefile).to be_true + expect(File.exist? basefile).to be_truthy end end end @@ -47,7 +47,7 @@ expect(output.string).to eq "-- #{str} --" end it 'redirect gets to StringIO object' do - input.stub(:gets).and_return(str) + allow(input).to receive(:gets).and_return(str) expect(subject.gets).to eq str end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index ec48da4..775768e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -12,9 +12,6 @@ else require 'coveralls' Coveralls.wear! - - # require "codeclimate-test-reporter" - # CodeClimate::TestReporter.start end RSpec.configure do |config|