1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/spec/v8/to_spec.rb

15 lines
336 B
Ruby
Raw Normal View History

require File.dirname(__FILE__) + '/../spec_helper'
include V8
describe V8::To do
it "can convert into perl case" do
To.perl_case("foo").should == "foo"
To.perl_case("fooBar").should == "foo_bar"
To.perl_case("fooBarBaz").should == "foo_bar_baz"
To.perl_case("XMLDocument").should == "xml_document"
end
end