create!(
:name => 'Long text', :field_format => 'text',
:full_width_layout => '1',
- :tracker_ids => [1,3], :is_for_all => true
+ :tracker_ids => [1, 3], :is_for_all => true
)
issue = Issue.find(1)
issue.custom_field_values = {field.id => 'This is a long text'}
:params => {
:board_id => 1,
:id => 3
- },
+ }
)
assert_response 404
assert_response :success
json = ActiveSupport::JSON.decode(response.body)
assert json.key?('users')
- users = User.where(status: [1,3])
+ users = User.where(status: [1, 3])
assert_equal users.size, json['users'].size
end
assert_equal("/bar_plugin_articles", plugin_articles_path)
should_route(
'GET /attachments/plugin_articles/12/edit' => 'attachments#edit_all',
- object_id: '12',
- object_type: 'plugin_articles'
+ :object_id => '12',
+ :object_type => 'plugin_articles'
)
end
:issues
def test_mentioned_users_with_user_mention
- to_test = %w(@dlopper @dlopper! @dlopper? @dlopper. @dlopper,)
+ to_test = %w(@dlopper @dlopper! @dlopper? @dlopper. @dlopper)
to_test.each do |item|
issue = Issue.generate!(project_id: 1, description: item)