585fcfb9e7
This mistake seems to have always been there, but it only resulted in errors on the `/explore*.json` since they were the one that _actually_ relied on the local variables.
31 lines
582 B
Ruby
31 lines
582 B
Ruby
require 'spec_helper'
|
|
|
|
describe Dashboard::ProjectsController do
|
|
it_behaves_like 'authenticates sessionless user', :index, :atom
|
|
|
|
context 'json requests' do
|
|
render_views
|
|
|
|
let(:user) { create(:user) }
|
|
|
|
before do
|
|
sign_in(user)
|
|
end
|
|
|
|
describe 'GET /projects.json' do
|
|
before do
|
|
get :index, format: :json
|
|
end
|
|
|
|
it { is_expected.to respond_with(:success) }
|
|
end
|
|
|
|
describe 'GET /starred.json' do
|
|
before do
|
|
get :starred, format: :json
|
|
end
|
|
|
|
it { is_expected.to respond_with(:success) }
|
|
end
|
|
end
|
|
end
|