remove runtime dependency on slop ~> v3.4, fix specs that depended on it

This commit is contained in:
strcmp 2015-12-11 06:06:03 +00:00
parent 52d88cdd6b
commit 1fc5e7f1d5
2 changed files with 2 additions and 4 deletions

View File

@ -19,7 +19,6 @@ Gem::Specification.new do |s|
s.files = `git ls-files bin lib *.md LICENSE`.split("\n")
s.add_dependency 'coderay', '~> 1.1.0'
s.add_dependency 'slop', '~> 3.4'
s.add_dependency 'method_source', '~> 0.8.1'
s.add_development_dependency 'bundler', '~> 1.0'
end

View File

@ -7,13 +7,12 @@ describe "gem-list" do
it 'should work arglessly' do
list = pry_eval('gem-list')
expect(list).to match(/slop \(/)
expect(list).to match(/rspec \(/)
end
it 'should find arg' do
prylist = pry_eval('gem-list slop')
expect(prylist).to match(/slop \(/)
prylist = pry_eval('gem-list method_source')
expect(prylist).to match(/method_source \(/)
expect(prylist).not_to match(/rspec/)
end