Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (14 sloc) 0.596 kb
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
Jump to Line
Something went wrong with that request. Please try again.