Sha256: 885b0940d6dadb1899bfe6ea86fb6ffa1dbc88ddda24cc24a96e17cb30c04383

Contents?: true

Size: 351 Bytes

Versions: 3

Compression:

Stored size: 351 Bytes

Contents

require File.join(File.expand_path(File.dirname(__FILE__)), '../lib/string.rb')

describe "When converting underscored symbols to camel case" do

	before(:each) do
		@values = ['foo_bar']
		@results = []
		@values.each {|v| @results << v.to_camel_case }
	end

  it "all samples shoud be converted ok" do
    @results[0].should == 'fooBar'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
inetmgr-0.6.0 spec/string_spec.rb
inetmgr-0.5.0 spec/string_spec.rb
inetmgr-0.4.0 spec/string_spec.rb