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