Sha256: f612c5ab37fa6b4224cb78c276073ee3793a17eaa8f0f5a2ce3672dad2137f9d
Contents?: true
Size: 937 Bytes
Versions: 14
Compression:
Stored size: 937 Bytes
Contents
Given(/^a file named "([^"]*)" like "([^"]*)"$/) do |file, example| text = read_example(example) step %(a file named "#{file}" with:), text end Given(/^a spec_helper\.rb file that requires rack\/test but not JSON$/) do step 'a file named "spec/rambo_helper.rb" like "spec_helper_only_rack_test.rb.example"' end Given(/^a spec_helper\.rb file that requires JSON but not rack\/test$/) do step 'a file named "spec/rambo_helper.rb" like "spec_helper_only_json.rb.example"' end Given(/a spec_helper.rb file that requires both JSON and rack\/test$/) do step 'a file named "spec/rambo_helper.rb" like "good_spec_helper.rb.example"' end Then(/^the file "([^"]*)" should be like "([^"]*)"$/) do |file, example| text = read_example(example) step %(a file "#{file}" should contain:), text end Then(/^the file "([^"]*)" should require "([^"]*)"$/) do |file, mod| steps %Q{the file "#{file}" should match /require "#{mod}"/} end
Version data entries
14 entries across 14 versions & 1 rubygems