Sha256: f665c92f357dc7cac135b4f84477745df647b0bc41d77c02e2698b2dcc963caa
Contents?: true
Size: 629 Bytes
Versions: 26
Compression:
Stored size: 629 Bytes
Contents
require File.expand_path("../../spec_helper", File.dirname(__FILE__)) describe String, '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 convert all - chars to _ in the task name' do 'build-essential'.to_task_name.should == 'build_essential' end it 'should convert multiple - chars to _ chars in the task name' do 'build--essential'.to_task_name.should == 'build__essential' end it 'should lowercase the task name' do 'BUILD-ESSENTIAL'.to_task_name.should == 'build_essential' end end
Version data entries
26 entries across 26 versions & 1 rubygems