Skip to content

Commit

Permalink
Skip test when there is no debug information.
Browse files Browse the repository at this point in the history
  • Loading branch information
take-cheeze committed Apr 1, 2017
1 parent 0e52056 commit cc00e73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ def foo
end

assert 'Method#source_location' do
skip if proc{}.source_location.nil?

filename = __FILE__
klass = Class.new

Expand All @@ -155,6 +157,8 @@ def foo
end

assert 'UnboundMethod#source_location' do
skip if proc{}.source_location.nil?

filename = __FILE__
klass = Class.new {
def respond_to_missing?(m, b)
Expand Down

0 comments on commit cc00e73

Please sign in to comment.