Class: RedminePluginsHelper::TestTasks::Rspec
- Defined in:
- lib/redmine_plugins_helper/test_tasks/rspec.rb
Constant Summary
Constants inherited from Base
Base::DEFAULT_TASK_NAME_LAST_PART, Base::PREPARE_TASK_NAME
Instance Method Summary collapse
Methods inherited from Base
#plugin_root, #prepare_task_name, register, #task_full_name
Instance Method Details
#register ⇒ Object
10 11 12 13 14 15 |
# File 'lib/redmine_plugins_helper/test_tasks/rspec.rb', line 10 def register ::RSpec::Core::RakeTask.new(task_full_name) do |t| t.rspec_opts = ::Shellwords.join(rspec_opts) end ::Rake::Task[task_full_name].enhance [prepare_task_name] end |
#rspec_opts ⇒ Object
17 18 19 20 21 |
# File 'lib/redmine_plugins_helper/test_tasks/rspec.rb', line 17 def rspec_opts ['--pattern', plugin_root.join('spec/**/*_spec.rb'), '--default-path', 'plugins/redmine_plugins_helper/spec', '--require', 'spec_helper'] end |