Sha256: 46b017ffe796a023829c25f9a5b0fda93aa7b272e9a2f5857a3a3c825cd9bbd4
Contents?: true
Size: 479 Bytes
Versions: 7
Compression:
Stored size: 479 Bytes
Contents
require 'spec_helper' require 'stringio' describe "gemline output" do before do stub_rubygems_json_output end it "should output one line to STDOUT so the output can be appended to a Gemfile" do grab_io { Gemline.query('rails') } expect(@stdout.readlines.count).to eq(1) end it "should output nothing to STDOUT on error" do Kernel.stub(:exit) grab_io { Gemline.query('doesnotexist') } expect(@stdout.readlines.count).to eq(0) end end
Version data entries
7 entries across 7 versions & 1 rubygems