Sha256: 766cebacd758329c12ae1d2537900281e8e1a37ce9811e5d715e6037fb59345a
Contents?: true
Size: 663 Bytes
Versions: 33
Compression:
Stored size: 663 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Mutant::Context::Scope, '#unqualified_name' do subject { object.unqualified_name } let(:path) { double('Path') } context 'with top level constant name' do let(:object) { described_class.new(TestApp, path) } it 'should return the unqualified name' do should eql('TestApp') end it_should_behave_like 'an idempotent method' end context 'with scoped constant name' do let(:object) { described_class.new(TestApp::Literal, path) } it 'should return the unqualified name' do should eql('Literal') end it_should_behave_like 'an idempotent method' end end
Version data entries
33 entries across 33 versions & 1 rubygems