Fix tests
This commit is contained in:
@@ -21,12 +21,6 @@ class Card::Eventable::SystemCommenterTest < ActiveSupport::TestCase
|
||||
end
|
||||
end
|
||||
|
||||
test "card_staged" do
|
||||
assert_system_comment "David moved this to ‘In progress’" do
|
||||
@card.change_stage_to workflow_stages(:qa_in_progress)
|
||||
end
|
||||
end
|
||||
|
||||
test "card_closed" do
|
||||
assert_system_comment "Closed as ‘Done’ by David" do
|
||||
@card.close
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
require "test_helper"
|
||||
|
||||
class Card::StagedTest < ActiveSupport::TestCase
|
||||
setup { Current.session = sessions(:david) }
|
||||
|
||||
test "change stage" do
|
||||
assert_difference -> { Event.where(action: :card_staged).count }, +1 do
|
||||
cards(:logo).change_stage_to(workflow_stages(:qa_in_progress))
|
||||
assert_equal workflow_stages(:qa_in_progress), cards(:logo).reload.stage
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user