docbrown/spec/system/user_selects_looking_for_work.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

18 lines
383 B
Ruby

require "rails_helper"
RSpec.describe "Looking For Work" do
let(:user) { create(:user) }
let(:tag) { create(:tag, name: "hiring") }
before do
sign_in(user)
tag
end
it "user selects looking for work and autofollows hiring tag" do
visit "/settings"
page.check "Looking for work"
click_button("submit")
expect(user.follows.count).to eq(1)
end
end