Sha256: efedd00d9b146c85aed8c2e4d64704b6cc7054526382ff7b716e5bfbb4c83574

Contents?: true

Size: 397 Bytes

Versions: 20

Compression:

Stored size: 397 Bytes

Contents

RSpec.describe Tram::Policy::Inflector do
  let(:snake) { "test/admin2_user_new_policy" }
  let(:camel) { "Test::Admin2UserNewPolicy" }

  describe "#underscore" do
    subject { described_class.underscore "Test::Admin2USERNew-Policy" }
    it { is_expected.to eq snake }
  end

  describe "#camelize" do
    subject { described_class.camelize snake }
    it { is_expected.to eq camel }
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
tram-policy-2.2.0 spec/tram/policy/inflector_spec.rb
tram-policy-2.1.0 spec/tram/policy/inflector_spec.rb
tram-policy-2.0.1 spec/tram/policy/inflector_spec.rb
tram-policy-2.0.0 spec/tram/policy/inflector_spec.rb
tram-policy-1.0.1 spec/tram/policy/inflector_spec.rb
tram-policy-1.0.0 spec/tram/policy/inflector_spec.rb
tram-policy-0.4.0 spec/tram/policy/inflector_spec.rb
tram-policy-0.3.1 spec/tram/policy/inflector_spec.rb
tram-policy-0.3.0 spec/tram/policy/inflector_spec.rb
tram-policy-0.2.5 spec/tram/policy/inflector_spec.rb
tram-policy-0.2.4 spec/tram/policy/inflector_spec.rb
tram-policy-0.2.3 spec/tram/policy/inflector_spec.rb
tram-policy-0.2.2 spec/tram/policy/inflector_spec.rb
tram-policy-0.2.1 spec/tram/policy/inflector_spec.rb
tram-policy-0.2.0 spec/tram/policy/inflector_spec.rb
tram-policy-0.1.1 spec/tram/policy/inflector_spec.rb
tram-policy-0.1.0 spec/tram/policy/inflector_spec.rb
tram-policy-0.0.3 spec/tram/policy/inflector_spec.rb
tram-policy-0.0.2 spec/tram/policy/inflector_spec.rb
tram-policy-0.0.1 spec/tram/policy/inflector_spec.rb