Skip to content

Commit

Permalink
Fix for review.
Browse files Browse the repository at this point in the history
  • Loading branch information
junaruga committed Feb 18, 2017
1 parent fb96fcb commit a0ce155
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion features/docs/getting_started.feature
Expand Up @@ -9,7 +9,7 @@ Feature: Getting started
When I run `cucumber`
Then it should fail with:
"""
No such file or directory - features. You can use `cucumber --init` to get started.
Feature folder not found at
"""

Scenario: Accidentally run Cucumber in a folder with Ruby files in it.
Expand Down
1 change: 0 additions & 1 deletion lib/cucumber/platform.rb
Expand Up @@ -14,7 +14,6 @@ module Cucumber
RUBY_2_2 = RUBY_VERSION =~ /^2\.2/
RUBY_2_1 = RUBY_VERSION =~ /^2\.1/
RUBY_2_3 = RUBY_VERSION =~ /^2\.3/
RUBY_2_4 = RUBY_VERSION =~ /^2\.4/

class << self
attr_accessor :use_full_backtrace
Expand Down
6 changes: 4 additions & 2 deletions lib/cucumber/runtime.rb
Expand Up @@ -31,11 +31,13 @@ class FileNotFoundException < FileException
end

class FeatureFolderNotFoundException < Exception
attr :path
def initialize(path)
super('No such file or directory - features')
@path = path
end

def message
"Feature folder not found at #{File.expand_path(@path)}"
end
end

require 'cucumber/core'
Expand Down

0 comments on commit a0ce155

Please sign in to comment.