Sha256: 321894e8df4f123b264fbb9fbc894e8c7104b3e013bccbc296c10f03a6f522ba

Contents?: true

Size: 333 Bytes

Versions: 9

Compression:

Stored size: 333 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
therubyracer-0.7.5 spec/v8/to_spec.rb
therubyracer-0.7.4 spec/v8/to_spec.rb
therubyracer-0.7.3 spec/v8/to_spec.rb
therubyracer-0.7.2 spec/v8/to_spec.rb
therubyracer-0.7.2.pre spec/v8/to_spec.rb
therubyracer-0.7.1 spec/v8/to_spec.rb
therubyracer-0.7.1.pre spec/v8/to_spec.rb
therubyracer-0.7.0 spec/v8/to_spec.rb
therubyracer-0.7.0.pre spec/v8/to_spec.rb