hanami-helpers/Rakefile

18 lines
399 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require "rake"
require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "hanami/devtools/rake_tasks"
Issue #105 Migrate from Minitest to RSpec (#106) * Create .rspec * Update .rubocop.yml * Update .travis.yml * Update hanami-helpers.gemspec * Update Rakefile * Create escape_helper_spec.rb * Create escape_helper_spec.rb * Create escape_helper_spec.rb * Delete escape_helper_spec.rb * Create fixtures.rb * Create version_spec.rb * Update escape_helper_spec.rb * Create html_helper_spec.rb * create form_helper_spec in progress * Create link_to_helper_spec.rb * Create routing_helper_spec.rb * Create number_formatting_helper_spec.rb * Update escape_helper_spec.rb * Create html_helper_spec * Create number_formatter_helper_spec * Create routing_helper_spec * Rename number_formatter_helper_spec to number_formatter_helper_spec.rb * Rename html_helper_spec to html_helper_spec.rb * Rename routing_helper_spec to routing_helper_spec.rb * Create form_helper_spec.rb * Create link_to_helper_spec.rb * Update .travis.yml * Update fixtures.rb * Create new.html.erb * Add files via upload * Create spec_helper.rb * Create html_builder_spec.rb * Update html_helper_spec.rb * Update escape_helper_spec.rb * Update form_helper_spec.rb * Update html_helper_spec.rb * Update escape_helper_spec.rb * Update version_spec.rb * Update * Update form_helper_spec.rb * Update html_helper_spec.rb * Update number_formatting_helper_spec.rb * clear trailing whitespace * Update spec_helper.rb * Update html_helper_spec.rb * Update hanami-helpers.gemspec * Update escape_helper_spec.rb * fix indentation issues * Update hanami-helpers.gemspec * Update Rakefile * Update form_helper_spec.rb * Update form_helper_spec.rb * Fix to skip errors about array and indent * Fix to clear CI issue This should fix this issue: test/fixtures.rb:58:5: W: Lint/AmbiguousBlockAssociation: Parenthesize the param html to make sure that the block will be associated with the + method call. (https://github.com/bbatsov/ruby-style-guide#syntax) html { div 'Hello' } + html { div 'Hanami' } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ * Update form_helper_spec.rb * Update fixtures.rb * Update fixtures.rb * Update form_helper_spec.rb * Update fixtures.rb
2017-04-11 12:23:34 +00:00
namespace :spec do
RSpec::Core::RakeTask.new(:unit) do |task|
file_list = FileList["spec/**/*_spec.rb"]
2018-07-12 09:19:17 +00:00
file_list = file_list.exclude("spec/{integration,isolation}/**/*_spec.rb")
Issue #105 Migrate from Minitest to RSpec (#106) * Create .rspec * Update .rubocop.yml * Update .travis.yml * Update hanami-helpers.gemspec * Update Rakefile * Create escape_helper_spec.rb * Create escape_helper_spec.rb * Create escape_helper_spec.rb * Delete escape_helper_spec.rb * Create fixtures.rb * Create version_spec.rb * Update escape_helper_spec.rb * Create html_helper_spec.rb * create form_helper_spec in progress * Create link_to_helper_spec.rb * Create routing_helper_spec.rb * Create number_formatting_helper_spec.rb * Update escape_helper_spec.rb * Create html_helper_spec * Create number_formatter_helper_spec * Create routing_helper_spec * Rename number_formatter_helper_spec to number_formatter_helper_spec.rb * Rename html_helper_spec to html_helper_spec.rb * Rename routing_helper_spec to routing_helper_spec.rb * Create form_helper_spec.rb * Create link_to_helper_spec.rb * Update .travis.yml * Update fixtures.rb * Create new.html.erb * Add files via upload * Create spec_helper.rb * Create html_builder_spec.rb * Update html_helper_spec.rb * Update escape_helper_spec.rb * Update form_helper_spec.rb * Update html_helper_spec.rb * Update escape_helper_spec.rb * Update version_spec.rb * Update * Update form_helper_spec.rb * Update html_helper_spec.rb * Update number_formatting_helper_spec.rb * clear trailing whitespace * Update spec_helper.rb * Update html_helper_spec.rb * Update hanami-helpers.gemspec * Update escape_helper_spec.rb * fix indentation issues * Update hanami-helpers.gemspec * Update Rakefile * Update form_helper_spec.rb * Update form_helper_spec.rb * Fix to skip errors about array and indent * Fix to clear CI issue This should fix this issue: test/fixtures.rb:58:5: W: Lint/AmbiguousBlockAssociation: Parenthesize the param html to make sure that the block will be associated with the + method call. (https://github.com/bbatsov/ruby-style-guide#syntax) html { div 'Hello' } + html { div 'Hanami' } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ * Update form_helper_spec.rb * Update fixtures.rb * Update fixtures.rb * Update form_helper_spec.rb * Update fixtures.rb
2017-04-11 12:23:34 +00:00
task.pattern = file_list
end
end
task default: "spec:unit"