Sha256: dd5e7019c3dafe2f0f3bd4a0fb181f1cf315e4dc966f0d7c841cf2fb301be78d

Contents?: true

Size: 409 Bytes

Versions: 1

Compression:

Stored size: 409 Bytes

Contents

# encoding: utf-8

describe Assertion::I18n, "#scope" do

  subject { fn[input] }

  let(:fn)     { described_class[:scope] }
  let(:input)  { "Foo::BarBaz" }
  let(:output) { [:assertion, :"foo/bar_baz"] }

  it "doesn't mutate the input" do
    expect { subject }.not_to change { input }
  end

  it "returns the class scope" do
    expect(subject).to eql output
  end

end # describe Assertion::I18n#scope

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
assertion-0.0.1 spec/unit/assertion/transprocs/i18n/to_scope_spec.rb