1
0

Added test_index_shows_and_hides_new_target_form

Removed redundant path asserts (checking path and page content is
either redundant or it's enough to check in one test only)
This commit is contained in:
cryptogopher
2020-08-20 21:59:33 +02:00
parent f9ba308072
commit d8a8d9f75e
2 changed files with 6 additions and 32 deletions

View File

@@ -9,32 +9,4 @@ module BodyTracking::PluginFixturesLoader
end
end
end
#private
## Load fixtures giving preference for plugin defined ones
#def load_fixtures(*args)
# # call create_fixtures directly instead of load_fixtures
# # or
# # create_fixtures in plugin_fixtures (include method in
# # ActiveRecord::TestFixtures) + load by calling #fixtures (like in issue_recurring)
# byebug
# redmine_fixture_path = self.fixture_path
# plugin_fixture_path = Rails.root.join('plugins', 'body_tracking', 'test', 'fixtures')
# all_ft_names = fixture_table_names
# plugin_ft_names, redmine_ft_names = fixture_table_names.partition do |ft_name|
# File.exists?(plugin_fixture_path.join("#{ft_name.to_s}.yml"))
# end
# self.fixture_table_names = redmine_ft_names
# fixtures = super
# ActiveSupport::TestCase.fixture_path = plugin_fixture_path
# self.fixture_table_names = plugin_ft_names
# fixtures.merge(super)
# ActiveSupport::TestCase.fixture_path = redmine_fixture_path
# self.fixture_table_names = all_ft_names
# fixtures
#end
end