Sha256: 9a042293534a131a0f1e139b596bb6406a0abfc8ba0c7bfe646a727060492f00

Contents?: true

Size: 640 Bytes

Versions: 3

Compression:

Stored size: 640 Bytes

Contents

def executing_rails_security
  "executing 'brakeman -q -p .'"
end

def rails_security_output
  `cd tmp/aruba/#{@projectname}/ && brakeman -q -p .`
    .split("\n")
    .reject { |line| !line.match(/^\+|\|/) }
    .join("\n")
end

Given(/^I have ((in)?valid_rails_app) project in directory$/) do |name, _|
  @projectname = name
  FileUtils.cp_r "spec/fixtures/#{@projectname}", 'tmp/aruba/'
  FileUtils.mv "tmp/aruba/#{@projectname}/Gemfile_lock",
               "tmp/aruba/#{@projectname}/Gemfile.lock"
  expect(`ls tmp/aruba`).to match(@projectname)
end

Given(/^I am on project directory$/) do
  @dirs = ["tmp/aruba/#{@projectname}"]
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
warder-0.1.9 features/step_definitions/checks_for_rails_security_issues_steps.rb
warder-0.1.8 features/step_definitions/checks_for_rails_security_issues_steps.rb
warder-0.1.7 features/step_definitions/checks_for_rails_security_issues_steps.rb