docbrown/spec/system/banned_user_interactions_spec.rb
Mac Siri fc39f24ee3 Migrate feature test to system test (#2301)
* Move all features to system

* Remove database_cleaner & apply use_transactional_fixtures

* Move rspec-retry to :test

* Update Capybara config

* Update rails_helper

* Fix user_visits_a_comments_page_spec.rb

* Fix lint
2019-04-04 12:15:10 -04:00

10 lines
245 B
Ruby

require "rails_helper"
RSpec.describe "Banned user", type: :system do
let(:banned_user) { create(:user, :banned) }
it "tries to create an article" do
sign_in banned_user
expect { visit "/new" }.to raise_error("BANNED")
end
end