Sha256: 0f43cc4753a51b4bf1c8dc4dedccfdc1579d5b1f204197dfda00029706d3ac4f
Contents?: true
Size: 644 Bytes
Versions: 15
Compression:
Stored size: 644 Bytes
Contents
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
15 entries across 15 versions & 1 rubygems