Method: ObjcSuite#initialize
- Defined in:
- lib/ObjC/objc_suite.rb
#initialize(hash) ⇒ ObjcSuite
Returns a new instance of ObjcSuite.
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/ObjC/objc_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] @feature_class_header_files = hash[:feature_class_header_files] || ["OMFeature.h"] @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 |