Sha256: 8ece2900ec10e6382605aa2929bc12d0c93400847286213923f36c1b7e7b2800
Contents?: true
Size: 986 Bytes
Versions: 3
Compression:
Stored size: 986 Bytes
Contents
require_relative '../spec_helper' describe Scrum::PriorityName do let(:priority_name) { Scrum::PriorityName } describe 'parses name' do it 'extracts priority number from card name' do expect(priority_name.priority('(0.5) P1: Refactor cards')).to eq(1) end it 'extracts priority number from card name if it is at the beginning ' do expect(priority_name.priority('P01: (3) Refactor cards')).to eq(1) end end describe 'updates priority' do it 'updates existing priority in title' do expect( priority_name.build('P01: (3) Refactor cards', 3) ).to eq('P3: (3) Refactor cards') end it 'adds new priority text to title' do expect( priority_name.build('(3) Refactor cards', 4) ).to eq('P4: (3) Refactor cards') end it 'updates priority after story points' do expect( priority_name.build('(0.5) P1: Refactor cards', 4) ).to eq('(0.5) P4: Refactor cards') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trollolo-0.3.1 | spec/unit/scrum/priority_name_spec.rb |
trollolo-0.3.0 | spec/unit/scrum/priority_name_spec.rb |
trollolo-0.2.0 | spec/unit/scrum/priority_name_spec.rb |