Skip to content

Commit

Permalink
More tests for :: scoping [troessner#29 state:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrutherford committed Mar 25, 2009
1 parent bfa6b1d commit 211822c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/reek/code_parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
check 'should report no problems for empty class', 'class Fred; end', []
end

describe CodeParser, 'with a global method definition' do
check 'should report no problems for simple method',
'def Outermost::fred() true; end', []
end

describe CodeParser, 'when given a C extension' do
before(:each) do
@cchk = CodeParser.new(Report.new, SmellConfig.new.smell_listeners)
Expand Down

0 comments on commit 211822c

Please sign in to comment.