Sha256: 3a3bf00de2be2f34b7feb09254603d73488d9f44756f80c514715c2e7851d697

Contents?: true

Size: 1.04 KB

Versions: 35

Compression:

Stored size: 1.04 KB

Contents

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

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

  Scenario: A syntax-clean Ruby file has no syntax error annotations
    When I replace the contents with "def foo\n  bar\nend"
    And I save the tab
    Then the tab should not have annotations
    And the file "plugins/ruby/features/fixtures/test.rb" should be deletable

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

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

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
redcar-0.13 plugins/ruby/features/syntax_check_ruby.feature
redcar-dev-0.13.5dev plugins/ruby/features/syntax_check_ruby.feature
redcar-dev-0.13.4dev plugins/ruby/features/syntax_check_ruby.feature
redcar-dev-0.13.3dev plugins/ruby/features/syntax_check_ruby.feature
redcar-dev-0.13.2dev plugins/ruby/features/syntax_check_ruby.feature
redcar-dev-0.13.1dev plugins/ruby/features/syntax_check_ruby.feature
redcar-0.12.1 plugins/ruby/features/syntax_check_ruby.feature
redcar-dev-0.13.0dev plugins/ruby/features/syntax_check_ruby.feature
redcar-0.12 plugins/ruby/features/syntax_check_ruby.feature
redcar-dev-0.12.27dev plugins/ruby/features/syntax_check_ruby.feature
redcar-dev-0.12.26dev plugins/ruby/features/syntax_check_ruby.feature
redcar-dev-0.12.25dev plugins/ruby/features/syntax_check_ruby.feature
redcar-dev-0.12.24dev plugins/ruby/features/syntax_check_ruby.feature
redcar-dev-0.12.23dev plugins/ruby/features/syntax_check_ruby.feature
redcar-dev-0.12.22dev plugins/ruby/features/syntax_check_ruby.feature
redcar-dev-0.12.21dev plugins/ruby/features/syntax_check_ruby.feature
redcar-dev-0.12.20dev plugins/ruby/features/syntax_check_ruby.feature
redcar-dev-0.12.19dev plugins/ruby/features/syntax_check_ruby.feature
redcar-dev-0.12.18dev plugins/ruby/features/syntax_check_ruby.feature
redcar-dev-0.12.17dev plugins/ruby/features/syntax_check_ruby.feature