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