mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
14 lines
No EOL
333 B
Ruby
14 lines
No EOL
333 B
Ruby
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 |