Sha256: 8fdcbc54a92e3492a10798cac240b6eeb6cc45399419240d13fb9fcf7a96b0e2

Contents?: true

Size: 591 Bytes

Versions: 2

Compression:

Stored size: 591 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 unit tests 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

2 entries across 2 versions & 1 rubygems

Version Path
cucumber_analytics-1.1.1 features/step_definitions/spec_steps.rb
cucumber_analytics-1.0.0 features/step_definitions/spec_steps.rb