Sha256: 40b7a9fb1e5af5577cece530eb19d48293dfa840d9e50b70a0cd088f7f00b356

Contents?: true

Size: 595 Bytes

Versions: 7

Compression:

Stored size: 595 Bytes

Contents

Given /^that there are "([^"]*)" detailing models$/ do |spec_file|
  sub_directory = spec_file =~ /integration/ ? 'integration' : 'unit'
  spec_file = "#{SPEC_DIRECTORY}/#{sub_directory}/#{spec_file}"

  fail "The spec file does not exist: #{spec_file}" unless File.exists?(spec_file)

  @spec_file = spec_file
end

When /^the corresponding specifications are run$/ do
  command = "rspec #{@spec_file}"

  @specs_passed = system(command)
end

Then /^all of those specifications are met$/ do
  fail "There were unmet specifications in '#{@spec_file}'." unless @specs_passed
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cucumber_analytics-1.5.1 features/step_definitions/spec_steps.rb
cucumber_analytics-1.5.0 features/step_definitions/spec_steps.rb
cucumber_analytics-1.4.2 features/step_definitions/spec_steps.rb
cucumber_analytics-1.4.1 features/step_definitions/spec_steps.rb
cucumber_analytics-1.4.0 features/step_definitions/spec_steps.rb
cucumber_analytics-1.3.0 features/step_definitions/spec_steps.rb
cucumber_analytics-1.2.0 features/step_definitions/spec_steps.rb