Sha256: ec7de1c8c5bcf715a77a99469e567518ddd71f85b4f1e1b2bbac8d14ed87b6cc

Contents?: true

Size: 596 Bytes

Versions: 63

Compression:

Stored size: 596 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

describe Array, 'task name conversions' do
  
  it 'should be able to deliver a task name' do
    ['build_essential'].to_task_name.should == 'build_essential'
  end
  
  it 'should join multiple elements together with a _ char' do
    ['gdb', 'gcc', 'g++'].to_task_name.should == 'gdb_gcc_g++'
  end
  
  it 'should use the task name of the underlying array element' do
    string = 'build-essential'
    string.should_receive(:to_task_name).and_return('build_essential')
    [string].to_task_name.should == 'build_essential'
  end
    
end

Version data entries

63 entries across 63 versions & 13 rubygems

Version Path
mitchellh-sprinkle-0.1.6 spec/sprinkle/extensions/array_spec.rb
trevorturk-sprinkle-0.2.2 spec/sprinkle/extensions/array_spec.rb
trevorturk-sprinkle-0.2.6 spec/sprinkle/extensions/array_spec.rb
dhill-sprinkle-0.3.3.1 spec/sprinkle/extensions/array_spec.rb
sprinkle-0.3.3 spec/sprinkle/extensions/array_spec.rb
sprinkle-0.3.2 spec/sprinkle/extensions/array_spec.rb
powcloud-sprinkle-0.3.4 spec/sprinkle/extensions/array_spec.rb
powcloud-sprinkle-0.3.0 spec/sprinkle/extensions/array_spec.rb
sprinkle-0.3.1 spec/sprinkle/extensions/array_spec.rb
sprinkle-0.3.0 spec/sprinkle/extensions/array_spec.rb
maxmpz-sprinkle-0.2.6.1 spec/sprinkle/extensions/array_spec.rb
sprinkle-0.2.6 spec/sprinkle/extensions/array_spec.rb
sprinkle-0.2.3 spec/sprinkle/extensions/array_spec.rb
sprinkle-0.2.4 spec/sprinkle/extensions/array_spec.rb
sprinkle-0.2.5 spec/sprinkle/extensions/array_spec.rb
sprinkle-0.1.6 spec/sprinkle/extensions/array_spec.rb
sprinkle-0.1.4 spec/sprinkle/extensions/array_spec.rb
sprinkle-0.1.7 spec/sprinkle/extensions/array_spec.rb
sprinkle-0.1.5 spec/sprinkle/extensions/array_spec.rb
sprinkle-0.1.8 spec/sprinkle/extensions/array_spec.rb