gshakhn / idea-fitnesse

An IntelliJ plugin for Fitnesse.
12 stars 22 forks source link

Method rename breaks existing scripts/scenarios #31

Open fhoeben opened 8 years ago

fhoeben commented 8 years ago

When I use IntelliJ's rename method function on one of my fixture methods, its usage in scripts in the wiki is corrupted.

  1. I have a fixture method currentSystemTime() used inside a script table as |show| currentSystemTime|
  2. I rename the method to currentSystemTime2()
  3. My script table line is changed to |currentSystemTime2|
  4. I have a fixture method currentSystemTimeAs(String format) used inside a script table as |show |current system time as|HH:MM:ss.SSS|
  5. I rename the method to currentSystemTimeAs2()
  6. My script table line is changed to |current system time as2|HHMMSsSSS|
JThoennes commented 3 years ago

@fhoeben Reading this issue it is not clear to me what the expected behavior is. You just describing the actual one. Ideally you say: I expected this result, but it appears to be that result.

fhoeben commented 3 years ago

@JThoennes the methods not containing the method name are messed up:

so: