Commit 955bd323 authored by Vitaly Slobodin's avatar Vitaly Slobodin

Use selected_group parameter

parent fa55b7e7
......@@ -19,7 +19,7 @@ module SubscriptionsHelper
def addon_data(group)
{
group_data: [present_group(group)].to_json,
namespace_id: params[:namespace_id],
namespace_id: params[:selected_group],
source: params[:source]
}
end
......
......@@ -141,7 +141,7 @@ RSpec.describe SubscriptionsHelper do
before do
allow(helper).to receive(:current_user).and_return(user)
allow(helper).to receive(:params).and_return({ namespace_id: group.id.to_s, source: 'some_source' })
allow(helper).to receive(:params).and_return({ selected_group: group.id.to_s, source: 'some_source' })
group.add_owner(user)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment