Skip to content

Commit

Permalink
Use io-grab to make the tests work in jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
dividedmind committed Oct 6, 2014
1 parent a107a68 commit 1acbfb1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
1 change: 1 addition & 0 deletions slosilo.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Gem::Specification.new do |gem|
gem.add_development_dependency 'rspec', '~> 2.14'
gem.add_development_dependency 'ci_reporter', '~> 1.9'
gem.add_development_dependency 'simplecov'
gem.add_development_dependency 'io-grab', '~> 0.0.1'
gem.add_development_dependency 'sequel' # for sequel tests
gem.add_development_dependency 'sqlite3' # for sequel tests
end
18 changes: 0 additions & 18 deletions spec/io_helper.rb

This file was deleted.

6 changes: 3 additions & 3 deletions spec/sequel_adapter_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper'
require 'sequel'
require 'io_helper'
require 'io/grab'

require 'slosilo/adapters/sequel_adapter'

Expand Down Expand Up @@ -95,7 +95,7 @@
end

it "supports look up by fingerprint, without a warning" do
STDERR.grab do
$stderr.grab do
subject.get_by_fingerprint(key.fingerprint).should == [key, 'test']
end.should be_empty
end
Expand All @@ -106,7 +106,7 @@
end

it "supports look up by fingerprint, but issues a warning" do
STDERR.grab do
$stderr.grab do
subject.get_by_fingerprint(key.fingerprint).should == [key, 'test']
end.should_not be_empty
end
Expand Down

0 comments on commit 1acbfb1

Please sign in to comment.