Commit 1282559c authored by Emily Ring's avatar Emily Ring

Added extra index test for clusterable_presenter

parent 99d967a9
...@@ -87,4 +87,20 @@ describe ClusterablePresenter do ...@@ -87,4 +87,20 @@ describe ClusterablePresenter do
it { is_expected.to be_nil } it { is_expected.to be_nil }
end end
describe '#index_path' do
let(:clusterable) { create(:group) }
context 'without options' do
subject { described_class.new(clusterable).index_path }
it { is_expected.to eq(group_clusters_path(clusterable)) }
end
context 'with options' do
subject { described_class.new(clusterable).index_path(format: :json) }
it { is_expected.to eq(group_clusters_path(clusterable, format: :json)) }
end
end
end 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