Sha256: 37ca013ce6a5594574da25e5fb8d6bcf11b6a532386d134667a54a99793e43bd

Contents?: true

Size: 695 Bytes

Versions: 7

Compression:

Stored size: 695 Bytes

Contents

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

def rails_security_output
  regexp = Warder::RailsSecurityRunner::PRINTABLE_REGEXP
  `cd tmp/aruba/#{@projectname}/ && brakeman -q -p .`
    .split("\n")
    .reject { |line| !regexp.match(line) }
    .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

7 entries across 7 versions & 1 rubygems

Version Path
warder-0.3.1 features/step_definitions/checks_for_rails_security_issues_steps.rb
warder-0.3.0 features/step_definitions/checks_for_rails_security_issues_steps.rb
warder-0.2.4 features/step_definitions/checks_for_rails_security_issues_steps.rb
warder-0.2.3 features/step_definitions/checks_for_rails_security_issues_steps.rb
warder-0.2.2 features/step_definitions/checks_for_rails_security_issues_steps.rb
warder-0.2.1 features/step_definitions/checks_for_rails_security_issues_steps.rb
warder-0.2.0 features/step_definitions/checks_for_rails_security_issues_steps.rb