Sha256: 93088d5a5792aff27bf5f8ff22bf7e3b5c75d99dffa2b0207ce07d05062352be
Contents?: true
Size: 596 Bytes
Versions: 2
Compression:
Stored size: 596 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cuke_modeler-0.0.2 | features/step_definitions/spec_steps.rb |
cuke_modeler-0.0.1 | features/step_definitions/spec_steps.rb |