A platform for community discussion. Free, open, simple.
Merge branch 'wizard-controller' of https://github.com/OsamaSayegh/discourse into OsamaSayegh-wizard-controller
Guo Xiang Tan47ddb3a7ca08
diff --cc spec/requests/wizard_controller_spec.rbindex e99e911fede,c9736a03d5b..9c8c72f6e21--- a/spec/requests/wizard_controller_spec.rb+++ b/spec/requests/wizard_controller_spec.rb@@@ -35,15 -32,15 +32,15 @@@ describe WizardController dendit "renders the wizard if you are an admin" do- log_in(:admin)- get :index, format: :json- expect(response).to be_successful+ sign_in(Fabricate(:admin))+ get "/wizard.json"- expect(response).to be_success++ expect(response.status).to eq(200)endit "returns JSON when the mime type is appropriate" do- log_in(:admin)- get :index, format: 'json'- expect(response).to be_successful+ sign_in(Fabricate(:admin))+ get "/wizard.json"- expect(response).to be_success++ expect(response.status).to eq(200)expect(::JSON.parse(response.body).has_key?('wizard')).to eq(true)endend