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

Version Path
rambo_ruby-0.7.1 features/step_definitions/file_steps.rb
rambo_ruby-0.7.0 features/step_definitions/file_steps.rb
rambo_ruby-0.6.0 features/step_definitions/file_steps.rb
rambo_ruby-0.5.0 features/step_definitions/file_steps.rb
rambo_ruby-0.4.0 features/step_definitions/file_steps.rb
rambo_ruby-0.3.3 features/step_definitions/file_steps.rb
rambo_ruby-0.3.2 features/step_definitions/file_steps.rb
rambo_ruby-0.3.1 features/step_definitions/file_steps.rb
rambo_ruby-0.3.0 features/step_definitions/file_steps.rb
rambo_ruby-0.2.3 features/step_definitions/file_steps.rb
rambo_ruby-0.2.2 features/step_definitions/file_steps.rb
rambo_ruby-0.2.1 features/step_definitions/file_steps.rb
rambo_ruby-0.2.0 features/step_definitions/file_steps.rb
rambo_ruby-0.1.0 features/step_definitions/file_steps.rb