Sha256: 0b49955bb392a303d18a4c4e01e4be14afdf9a8dc5f6768c80c7e1bb88d2a059
Contents?: true
Size: 741 Bytes
Versions: 1
Compression:
Stored size: 741 Bytes
Contents
require 'spec_helper' describe 'Rallycat' do context 'cat' do it 'fetches, parses and outputs the rally story requested by the user' do auth_responder = lambda do |env| # 'https://rally1.rallydev.com/slm/webservice/current/user' [200, {}, ['<foo>bar</foo>']] end sout = StringIO.new cli = nil Artifice.activate_with auth_responder do cli = Rallycat::CLI.new %w{ cat US4567 -u=foo.bar@rallycat.com -p=password'}, sout end story_responder = RallyStoryResponder.new Artifice.activate_with story_responder.endpoint do cli.run end sout.rewind sout.read.should include('# [US4567] - [Rework] Change link to button') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rallycat-0.1.0 | spec/integration_spec.rb |