mirror of
https://github.com/discourse/discourse.git
synced 2025-03-31 11:25:40 +08:00
correct spec
This commit is contained in:
parent
376b28b0ed
commit
124ae8ada6
@ -5,8 +5,9 @@ describe ClicksController do
|
|||||||
context 'create' do
|
context 'create' do
|
||||||
|
|
||||||
context 'missing params' do
|
context 'missing params' do
|
||||||
it 'raises an error without the url param' do
|
it 'raises a 404 without the url param' do
|
||||||
expect { xhr :get, :track, post_id: 123 }.to raise_error(ActionController::ParameterMissing)
|
xhr :get, :track, post_id: 123
|
||||||
|
expect(response).to be_not_found
|
||||||
end
|
end
|
||||||
|
|
||||||
it "redirects to the url even without the topic_id or post_id params" do
|
it "redirects to the url even without the topic_id or post_id params" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user