lib/decidim/dev/test/rspec_support/feature.rb in decidim-dev-0.2.0 vs lib/decidim/dev/test/rspec_support/feature.rb in decidim-dev-0.3.0
- old
+ new
@@ -25,16 +25,17 @@
class DummyResource < ActiveRecord::Base
include HasFeature
include Resourceable
include Reportable
include Authorable
+ include HasCategory
include Decidim::Comments::Commentable
feature_manifest_name "dummy"
- def reported_content
- title
+ def reported_content_url
+ ResourceLocatorPresenter.new(self).url
end
end
class DummyResourcesController < ActionController::Base
helper Decidim::Comments::CommentsHelper
@@ -108,9 +109,10 @@
t.float :latitude
t.float :longitude
t.references :decidim_feature, index: true
t.references :decidim_author, index: true
+ t.references :decidim_category, index: true
t.timestamps
end
end
end