Sha256: 8a09ed9d85aaddfa9cf5e6049c418672e8f98ed3fa6efd68c6069b5dd9b5baf4
Contents?: true
Size: 388 Bytes
Versions: 2
Compression:
Stored size: 388 Bytes
Contents
require 'test_helper' class TaskTest < ActiveSupport::TestCase setup do Dummy::Application.load_tasks end test 'import' do shop = Shop.create(name: 'Guitar shop') category = Category.create(name: 'Electric', shop: shop) Slugs::Slug.destroy_all Rake::Task['slugs:migrate'].invoke assert_equal %w(guitar-shop electric), Slugs::Slug.pluck(:value) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slugs-4.0.0.3 | test/task_test.rb |
slugs-4.0.0.2 | test/task_test.rb |