Skip to content

Commit

Permalink
fix tests for rspec3
Browse files Browse the repository at this point in the history
  • Loading branch information
mose committed Aug 19, 2014
1 parent dec1e12 commit 2f413ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions configstruct.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions spec/lib/configstruct_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
3 changes: 0 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
else
require 'coveralls'
Coveralls.wear!

# require "codeclimate-test-reporter"
# CodeClimate::TestReporter.start
end

RSpec.configure do |config|
Expand Down

0 comments on commit 2f413ea

Please sign in to comment.