Sha256: 7b35e980d2f4cda90fdb09ea51ceb55426a2cf534a29b4f2bc9027656e723e0a

Contents?: true

Size: 811 Bytes

Versions: 15

Compression:

Stored size: 811 Bytes

Contents

Feature: Indents Ruby code correctly

  Background:
    Given the indentation rules are like Ruby's
    When I open a new edit tab
    And tabs are hard
    
  Scenario: It should increase indentation after 'def's
    When I insert "def f" at the cursor
    And I move the cursor to 5
    And I insert "\n" at the cursor
    Then the contents should be "def f\n\t"
    
  Scenario: It should decrease indentation on 'end' line
    When I insert "def f\n\t1\n\ten" at the cursor
    And I move the cursor to 12
    And I insert "d" at the cursor
    Then the contents should be "def f\n\t1\nend"
    
  Scenario: It should keep indentation the same if no change
    When I insert "\tfoo" at the cursor
    And I move the cursor to 4
    And I insert "\n" at the cursor
    Then the contents should be "\tfoo\n\t"

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
redcar-0.4.1 plugins/auto_indenter/features/ruby_style_indentation.feature
redcar-0.4 plugins/auto_indenter/features/ruby_style_indentation.feature
redcar-0.3.10.1dev plugins/auto_indenter/features/ruby_style_indentation.feature
redcar-0.3.10.0dev plugins/auto_indenter/features/ruby_style_indentation.feature
redcar-0.3.9 plugins/auto_indenter/features/ruby_style_indentation.feature
redcar-0.3.9.0dev plugins/auto_indenter/features/ruby_style_indentation.feature
redcar-0.3.8.4 plugins/auto_indenter/features/ruby_style_indentation.feature
redcar-0.3.8.3 plugins/auto_indenter/features/ruby_style_indentation.feature
redcar-0.3.8.2 plugins/auto_indenter/features/ruby_style_indentation.feature
redcar-0.3.8.1 plugins/auto_indenter/features/ruby_style_indentation.feature
redcar-0.3.8 plugins/auto_indenter/features/ruby_style_indentation.feature
redcar-0.3.7.1 plugins/auto_indenter/features/ruby_style_indentation.feature
redcar-0.3.7 plugins/auto_indenter/features/ruby_style_indentation.feature
redcar-0.3.6 plugins/auto_indenter/features/ruby_style_indentation.feature
redcar-0.3.5 plugins/auto_indenter/features/ruby_style_indentation.feature