class StructCore::SpecSchemeTestDSL30X
Attributes
current_scope[RW]
project[RW]
test_action[RW]
Public Class Methods
new()
click to toggle source
# File lib/spec/builder/spec_builder_30X/spec_scheme_test_dsl_30X.rb, line 7 def initialize @current_scope = nil @test_action = nil @project = nil end
Public Instance Methods
build_configuration(args = '')
click to toggle source
# File lib/spec/builder/spec_builder_30X/spec_scheme_test_dsl_30X.rb, line 40 def build_configuration(args = '') return if args.nil? || !args.is_a?(String) @test_action.build_configuration = args if @project.version.major == 2 && @project.version.minor >= 1 end
enable_code_coverage()
click to toggle source
# File lib/spec/builder/spec_builder_30X/spec_scheme_test_dsl_30X.rb, line 23 def enable_code_coverage @test_action.code_coverage_enabled = true end
environment(&block)
click to toggle source
# File lib/spec/builder/spec_builder_30X/spec_scheme_test_dsl_30X.rb, line 27 def environment(&block) return if block.nil? dsl = StructCore::SpecSchemeTestEnvironmentDSL30X.new @current_scope = dsl dsl.environment = {} block.call @current_scope = nil @test_action.environment = dsl.environment end
inherit_launch_arguments()
click to toggle source
# File lib/spec/builder/spec_builder_30X/spec_scheme_test_dsl_30X.rb, line 19 def inherit_launch_arguments @test_action.inherit_launch_arguments = true end
method_missing(method, *args, &block)
click to toggle source
# File lib/spec/builder/spec_builder_30X/spec_scheme_test_dsl_30X.rb, line 49 def method_missing(method, *args, &block) return if @current_scope.nil? @current_scope.send(method, *args, &block) end
respond_to_missing?(_, _)
click to toggle source
# File lib/spec/builder/spec_builder_30X/spec_scheme_test_dsl_30X.rb, line 45 def respond_to_missing?(_, _) true end
target(name = nil)
click to toggle source
# File lib/spec/builder/spec_builder_30X/spec_scheme_test_dsl_30X.rb, line 13 def target(name = nil) return unless name.is_a?(String) && !name.empty? @test_action.targets ||= [] @test_action.targets << name end