Sha256: 7c9cceb6154a9427786044fce5d168a0b3f0dbc34a79de18ba2534819f59e861

Contents?: true

Size: 533 Bytes

Versions: 4

Compression:

Stored size: 533 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.ln_s "../../spec/fixtures/#{@projectname}", 'tmp/aruba/'
  expect(`ls tmp/aruba`).to match(@projectname)
end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
warder-0.1.6 features/step_definitions/checks_for_rails_security_issues_steps.rb
warder-0.1.5 features/step_definitions/checks_for_rails_security_issues_steps.rb
warder-0.1.4 features/step_definitions/checks_for_rails_security_issues_steps.rb
warder-0.1.3 features/step_definitions/checks_for_rails_security_issues_steps.rb