Files
grecia/spec/system/admin/comments_spec.rb
Javi Martín 9427f01442 Use system specs instead of feature specs
We get rid of database cleaner, and JavaScript tests are faster because
between tests we now rollback transactions instead of truncating the
database.
2020-04-24 15:43:54 +02:00

18 lines
352 B
Ruby

require "rails_helper"
describe "Admin comments" do
before do
admin = create(:administrator)
login_as(admin.user)
end
scenario "Index" do
create(:comment, body: "Everything is awesome")
visit admin_root_path
within("#side_menu") { click_link "Comments" }
expect(page).to have_content "Everything is awesome"
end
end