Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Commit

Permalink
Test making a string of an absolute constant path.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Jun 27, 2016
1 parent 971a7da commit 61cc65f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/ruby-lint/constant_path_spec.rb
Expand Up @@ -15,6 +15,13 @@
name.should == 'Foo::Bar'
end

example 'generate the name of an absolute constant path' do
node = s(:const, s(:cbase), :Foo)
name = RubyLint::ConstantPath.new(node).to_s

name.should == '::Foo'
end

context 'resolving definitions' do
before :all do
@scope = ruby_object.new(:type => :const, :name => 'Example')
Expand Down

0 comments on commit 61cc65f

Please sign in to comment.