Sha256: 0c3d43234b68b7af97594804c731cd55ce1e975b75b7ca41e939f2af1a5c7928
Contents?: true
Size: 441 Bytes
Versions: 4
Compression:
Stored size: 441 Bytes
Contents
# encoding: utf-8 describe Assertion::Inflector, "#to_path" do subject { fn[input] } let(:fn) { described_class[:to_path] } let(:input) { "::/Foo-bar::baz/qux" } let(:output) { "Foo/bar/baz/qux" } it "doesn't mutate the input" do expect { subject }.not_to change { input } end it "returns the string converted to snake case" do expect(subject).to eql output end end # describe Assertion::Inflector#to_path
Version data entries
4 entries across 4 versions & 1 rubygems