module RakeTaskOutputHelpers

A collection of methods to help dealing with rake tasks output.

Public Instance Methods

check_error_printed(type) click to toggle source
# File lib/decidim/dev/test/rspec_support/rake_tasks.rb, line 54
def check_error_printed(type)
  expect($stdout.string).to include("ERROR: [#{type}]")
end
check_message_printed(message) click to toggle source
# File lib/decidim/dev/test/rspec_support/rake_tasks.rb, line 58
def check_message_printed(message)
  expect($stdout.string).to include(message)
end
check_no_errors_have_been_printed() click to toggle source
# File lib/decidim/dev/test/rspec_support/rake_tasks.rb, line 46
def check_no_errors_have_been_printed
  expect($stdout.string).not_to include("ERROR:")
end
check_some_errors_have_been_printed() click to toggle source
# File lib/decidim/dev/test/rspec_support/rake_tasks.rb, line 50
def check_some_errors_have_been_printed
  expect($stdout.string).to include("ERROR:")
end