Skip to content

Commit

Permalink
adding scenario for issue ecomba#24
Browse files Browse the repository at this point in the history
  • Loading branch information
despo committed Jun 1, 2011
1 parent 6a96f1d commit a429761
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions features/inline_temp.feature
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,23 @@ Feature: Inline Temp :RInlineTemp
y = x + 1
end
"""

@issues
Scenario: Inline a temporary variable to all variables within the context of a method
Given I have the following code:
"""
x = 5
foo = x + 10
x = 10
bar = x + 10
"""
When I go to the line and execute:
"""
:RInlineTemp
"""
Then I should see:
"""
foo = 5 + 10
x = 10
bar = x + 10
"""

0 comments on commit a429761

Please sign in to comment.