-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from HParker/test_and_autoselect_post_condition
auto select based on current line and test
- Loading branch information
Showing
3 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Feature: The ruby-refactor-convert-post-conditional function | ||
|
||
Background: | ||
Given I have loaded my example Ruby file | ||
And I turn on ruby-mode | ||
And I turn on ruby-refactor-mode | ||
|
||
Scenario: Should convert post conditional | ||
When I select "some are greater" | ||
And I start an action chain | ||
And I press "C-c C-r o" | ||
And I execute the action chain | ||
Then I should see: | ||
""" | ||
unless long_method.empty? | ||
puts "some are greater than 3" | ||
end | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters