Commit 55c006361c2ce051125490f30beaaeddf0c2e81b

Authored by Braulio Bhavamitra
1 parent 6c55ce14

scrap_test: destroy actiontracker to stabilize #last

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
test/unit/scrap_test.rb
@@ -5,6 +5,7 @@ class ScrapTest < ActiveSupport::TestCase @@ -5,6 +5,7 @@ class ScrapTest < ActiveSupport::TestCase
5 def setup 5 def setup
6 Person.delete_all 6 Person.delete_all
7 Scrap.delete_all 7 Scrap.delete_all
  8 + ActionTracker::Record.destroy_all
8 end 9 end
9 10
10 should "have the content" do 11 should "have the content" do
@@ -265,7 +266,7 @@ class ScrapTest < ActiveSupport::TestCase @@ -265,7 +266,7 @@ class ScrapTest < ActiveSupport::TestCase
265 should 'the action_tracker_target be the community when the scraps has the community as receiver' do 266 should 'the action_tracker_target be the community when the scraps has the community as receiver' do
266 scrap = Scrap.new 267 scrap = Scrap.new
267 assert_equal scrap, scrap.action_tracker_target 268 assert_equal scrap, scrap.action_tracker_target
268 - 269 +
269 community = fast_create(Community) 270 community = fast_create(Community)
270 scrap.receiver = community 271 scrap.receiver = community
271 assert_equal community, scrap.action_tracker_target 272 assert_equal community, scrap.action_tracker_target