Skip to content

Commit

Permalink
Adapt expectations to ruby 2.5 behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Jan 27, 2018
1 parent 63da163 commit 1ed77f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/commands/breakpoints_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def setup

@input.add("break Break1Example#a")
redirect_pry_io(@input, @output) { load test_file("break1") }
@line = 5
@line = RUBY_VERSION >= "2.5.0" ? 6 : 5
@regexp = / Breakpoint (?<id>\d+): Break1Example#a \(Enabled\)/
end

Expand All @@ -84,7 +84,7 @@ def setup

@input.add("break Break1Example#c!")
redirect_pry_io(@input, @output) { load test_file("break1") }
@line = 15
@line = RUBY_VERSION >= "2.5.0" ? 16 : 15
@regexp = / Breakpoint (?<id>\d+): Break1Example#c! \(Enabled\)/
end

Expand Down

0 comments on commit 1ed77f0

Please sign in to comment.