mirror of
https://github.com/anteo/redmine_custom_workflows.git
synced 2026-01-26 00:04:20 +00:00
Rubocop tests
This commit is contained in:
parent
042761b6e0
commit
3e432ecd6d
@ -18,7 +18,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Attachment controller patch test
|
# Attachment controller patch test
|
||||||
class AttachmentsControllerPatchTest < RedmineCustomWorkflows::Test::TestCase
|
class AttachmentsControllerPatchTest < RedmineCustomWorkflows::Test::TestCase
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Custom workflows controller test
|
# Custom workflows controller test
|
||||||
class CustomWorkflowsControllerTest < RedmineCustomWorkflows::Test::TestCase
|
class CustomWorkflowsControllerTest < RedmineCustomWorkflows::Test::TestCase
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Group controller patch test
|
# Group controller patch test
|
||||||
class GroupControllerPatchTest < RedmineCustomWorkflows::Test::TestCase
|
class GroupControllerPatchTest < RedmineCustomWorkflows::Test::TestCase
|
||||||
@ -40,10 +40,10 @@ class GroupControllerPatchTest < RedmineCustomWorkflows::Test::TestCase
|
|||||||
assert_equal 'Custom workflow', @controller.flash[:notice]
|
assert_equal 'Custom workflow', @controller.flash[:notice]
|
||||||
end
|
end
|
||||||
|
|
||||||
# def test_cw_env
|
def test_cw_env
|
||||||
# @request.headers['Referer'] = edit_group_path(id: @group10.id)
|
@request.headers['Referer'] = edit_group_path(id: @group10.id)
|
||||||
# put :update, params: { id: @group10.id, group: { name: 'Updated name' } }
|
put :update, params: { id: @group10.id, group: { name: 'Updated name' } }
|
||||||
# assert_redirected_to edit_group_path(id: @group10.id)
|
assert_redirected_to edit_group_path(id: @group10.id)
|
||||||
# assert_equal request.remote_ip, @controller.flash[:warning]
|
assert_equal request.remote_ip, @controller.flash[:warning]
|
||||||
# end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Issue relation controller patch test
|
# Issue relation controller patch test
|
||||||
class IssueRelationsControllerPatchTest < RedmineCustomWorkflows::Test::TestCase
|
class IssueRelationsControllerPatchTest < RedmineCustomWorkflows::Test::TestCase
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Issue controller patch test
|
# Issue controller patch test
|
||||||
class IssuesControllerPatchTest < RedmineCustomWorkflows::Test::TestCase
|
class IssuesControllerPatchTest < RedmineCustomWorkflows::Test::TestCase
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Project controller patch test
|
# Project controller patch test
|
||||||
class ProjectsControllerPatchTest < RedmineCustomWorkflows::Test::TestCase
|
class ProjectsControllerPatchTest < RedmineCustomWorkflows::Test::TestCase
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Time controller patch test
|
# Time controller patch test
|
||||||
class TimelogControllerPatchTest < RedmineCustomWorkflows::Test::TestCase
|
class TimelogControllerPatchTest < RedmineCustomWorkflows::Test::TestCase
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Users controller patch test
|
# Users controller patch test
|
||||||
class UsersControllerPatchTest < RedmineCustomWorkflows::Test::TestCase
|
class UsersControllerPatchTest < RedmineCustomWorkflows::Test::TestCase
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Version controller patch test
|
# Version controller patch test
|
||||||
class VersionsControllerPatchTest < RedmineCustomWorkflows::Test::TestCase
|
class VersionsControllerPatchTest < RedmineCustomWorkflows::Test::TestCase
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Wiki controller patch test
|
# Wiki controller patch test
|
||||||
class WikiControllerPatchTest < RedmineCustomWorkflows::Test::TestCase
|
class WikiControllerPatchTest < RedmineCustomWorkflows::Test::TestCase
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Attachment patch test class
|
# Attachment patch test class
|
||||||
class AttachmentPatchTest < RedmineCustomWorkflows::Test::UnitTest
|
class AttachmentPatchTest < RedmineCustomWorkflows::Test::UnitTest
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Custom mailer test class
|
# Custom mailer test class
|
||||||
class CustomWorkflowMailerTest < RedmineCustomWorkflows::Test::UnitTest
|
class CustomWorkflowMailerTest < RedmineCustomWorkflows::Test::UnitTest
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Custom workflow test class
|
# Custom workflow test class
|
||||||
class CustomWorkflowTest < RedmineCustomWorkflows::Test::UnitTest
|
class CustomWorkflowTest < RedmineCustomWorkflows::Test::UnitTest
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Group patch test class
|
# Group patch test class
|
||||||
class GroupPatchTest < RedmineCustomWorkflows::Test::UnitTest
|
class GroupPatchTest < RedmineCustomWorkflows::Test::UnitTest
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Issue patch test class
|
# Issue patch test class
|
||||||
class IssuePatchTest < RedmineCustomWorkflows::Test::UnitTest
|
class IssuePatchTest < RedmineCustomWorkflows::Test::UnitTest
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Issue relation patch test class
|
# Issue relation patch test class
|
||||||
class IssueRelationPatchTest < RedmineCustomWorkflows::Test::UnitTest
|
class IssueRelationPatchTest < RedmineCustomWorkflows::Test::UnitTest
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Project patch test class
|
# Project patch test class
|
||||||
class ProjectPatchTest < RedmineCustomWorkflows::Test::UnitTest
|
class ProjectPatchTest < RedmineCustomWorkflows::Test::UnitTest
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Time entry patch test class
|
# Time entry patch test class
|
||||||
class TimeEntryPatchTest < RedmineCustomWorkflows::Test::UnitTest
|
class TimeEntryPatchTest < RedmineCustomWorkflows::Test::UnitTest
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# user patch test class
|
# user patch test class
|
||||||
class UserPatchTest < RedmineCustomWorkflows::Test::UnitTest
|
class UserPatchTest < RedmineCustomWorkflows::Test::UnitTest
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Version patch test class
|
# Version patch test class
|
||||||
class VersionPatchTest < RedmineCustomWorkflows::Test::UnitTest
|
class VersionPatchTest < RedmineCustomWorkflows::Test::UnitTest
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Wiki content patch test class
|
# Wiki content patch test class
|
||||||
class WikiContentPatchTest < RedmineCustomWorkflows::Test::UnitTest
|
class WikiContentPatchTest < RedmineCustomWorkflows::Test::UnitTest
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../test_helper', __dir__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
# Wiki page test class
|
# Wiki page test class
|
||||||
class WikiPagePatchTest < RedmineCustomWorkflows::Test::UnitTest
|
class WikiPagePatchTest < RedmineCustomWorkflows::Test::UnitTest
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user