Sha256: 16c8e8a9ba141f2a5c15b0f960f9ce3cfff8a4f1685926ad92b34421a2cf7bee
Contents?: true
Size: 862 Bytes
Versions: 2
Compression:
Stored size: 862 Bytes
Contents
# frozen_string_literal: true require_relative '../../lib/rubycritic' require_relative '../../lib/rubycritic/cli/application' require_relative '../../lib/rubycritic/commands/status_reporter' require 'aruba/cucumber' require 'minitest/spec' # # Provides runner methods used in the cucumber steps. # class RubyCriticWorld extend MiniTest::Assertions attr_accessor :assertions def initialize self.assertions = 0 end def rubycritic(args) run_simple("rubycritic #{args} --no-browser", false) end def rake(name, task_def) header = <<-RUBY.strip_heredoc require 'rubycritic' require 'rubycritic/rake_task' RUBY write_file 'Rakefile', header + task_def run_simple("rake #{name}", false) end end World do RubyCriticWorld.new end Before do Aruba.configure do |config| config.exit_timeout = 30 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubycritic-3.4.0 | features/support/env.rb |
rubycritic-3.3.0 | features/support/env.rb |