Method: RailsSuite#initialize

Defined in:
lib/Rails/rails_suite.rb

#initialize(hash) ⇒ RailsSuite

Returns a new instance of RailsSuite.



10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/Rails/rails_suite.rb', line 10

def initialize(hash)
  @feature_files_path          = hash[:feature_files_path]
  @feature_file_suffix         = hash[:feature_file_suffix] || "feature"
  @test_cases_file             = hash[:test_cases_file]
  @features_helper             = File.expand_path(hash[:features_helper])
  @feature_keyword             = hash[:feature_keyword] || "Feature:"
  @scenario_keyword            = hash[:scenario_keyword] || "Scenario:"
  @given_scenario_keyword      = hash[:given_scenario_keyword] || "GivenScenario:"
  @project_name                = hash[:project_name] || "Features"
  @follow_up_keyword           = hash[:follow_up_keyword] || "And"
  @feature_files               = all_feature_files
  @feature_files_as_strings    = all_feature_files_as_strings
end