docbrown/spec/requests/users_onboarding_spec.rb
Mac Siri 6d1638ed68 Unskip all skipped specs (#2941)
* Change all login_as to sign_in

* Unskip comment spec

* Create new specs

* Turn on Webdriver caching

* Set logger for Omniauth in test

* Update editor system spec

* Fix editor approval file

* Update video_controller

* Update TagAdjustmentUpdateService's spec

* Update users api spec

* Update stories_index_spec

* Remove redundant spec file

* Remove residual code

* Change ClassifiedListing spec

* Update NotificationsIndex spec
2019-05-25 11:04:38 -04:00

16 lines
365 B
Ruby

require "rails_helper"
RSpec.describe "UsersOnboarding", type: :request do
let(:user) { create(:user, saw_onboarding: false) }
before do
sign_in user
end
describe "PATCH /onboarding_update" do
it "updates saw_onboarding boolean" do
patch "/onboarding_update.json", params: {}
expect(user.saw_onboarding).to eq(true)
end
end
end