Sha256: 0b63cb3b2185bdcf5776e1714e90686d8df3b6553da475229b7c10b13c0535d0

Contents?: true

Size: 1.74 KB

Versions: 16

Compression:

Stored size: 1.74 KB

Contents

Feature: Syntax Checking for Mirah
  As a user
  I want to get annotations on syntax errors and warnings in Mirah files

  Background:
    When I have opened "plugins/mirah/features/fixtures/test.mirah"

  Scenario: A syntax-clean Mirah file has no syntax error annotations
    When I replace the contents with "def foo\n  bar\nend"
    And I save the tab
    And I wait 2 seconds
    Then the tab should not have annotations

  Scenario: A syntax-error in a Mirah file should cause syntax error annotations
    When I replace the contents with "def foo\n  => bar\nend"
    And I save the tab
    And I wait 2 seconds
    Then the tab should have annotations
    And the tab should have an annotation on line 2

  Scenario: A syntax-warning in a Mirah file should cause syntax warning annotations
    When I replace the contents with "def foo\n end"
    And I save the tab
    And I wait 2 seconds
    Then the tab should have annotations
    And the tab should have an annotation on line 2

  Scenario: Fixing a syntax-error in a Mirah file should cause syntax error annotations to vanish
    When I replace the contents with "def foo\n  => bar\nend"
    And I save the tab
    And I wait 2 seconds
    Then the tab should have annotations
    When I replace the contents with "def foo\n  bar\nend"
    And I save the tab
    And I wait 2 seconds
    Then the tab should not have annotations

  Scenario: Fixing a syntax-warning in a Mirah file should cause syntax error annotations to vanish
    When I replace the contents with "def foo\n end"
    And I save the tab
    And I wait 2 seconds
    Then the tab should have annotations
    When I replace the contents with "def foo\nend"
    And I save the tab
    And I wait 2 seconds
    Then the tab should not have annotations

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
redcar-mirah-0.2 features/syntax_check_mirah.feature
redcar-mirah-0.1-java features/syntax_check_mirah.feature
redcar-dev-0.12.12dev-java plugins/mirah/features/syntax_check_mirah.feature
redcar-dev-0.12.11dev-java plugins/mirah/features/syntax_check_mirah.feature
redcar-dev-0.12.10dev-java plugins/mirah/features/syntax_check_mirah.feature
redcar-dev-0.12.9dev-java plugins/mirah/features/syntax_check_mirah.feature
redcar-dev-0.12.8dev-java plugins/mirah/features/syntax_check_mirah.feature
redcar-dev-0.12.7dev-java plugins/mirah/features/syntax_check_mirah.feature
redcar-dev-0.12.6dev-java plugins/mirah/features/syntax_check_mirah.feature
redcar-dev-0.12.4dev-java plugins/mirah/features/syntax_check_mirah.feature
redcar-dev-0.12.3dev-java plugins/mirah/features/syntax_check_mirah.feature
redcar-dev-0.12.1dev-java plugins/mirah/features/syntax_check_mirah.feature
redcar-dev-0.12.0dev-java plugins/mirah/features/syntax_check_mirah.feature
redcar-0.11 plugins/mirah/features/syntax_check_mirah.feature
redcar-0.11.0dev plugins/mirah/features/syntax_check_mirah.feature
redcar-0.10 plugins/mirah/features/syntax_check_mirah.feature