improve test setup with factory bot

This commit is contained in:
João Geonizeli
2021-08-14 11:58:51 -03:00
parent 51a493b327
commit 97c6f28b03
10 changed files with 176 additions and 16 deletions

View File

@@ -2,5 +2,9 @@
require "rails_helper"
RSpec.describe("home/index.html.erb", type: :view) do
pending "add some examples to (or delete) #{__FILE__}"
it "render div with id root" do
render
expect(rendered).to(eq("<div id=\"root\"></div>"))
end
end