mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-07 13:38:12 -08:00
18 lines
430 B
Ruby
18 lines
430 B
Ruby
require "rails_helper"
|
|
|
|
module Dashboard
|
|
RSpec.describe "dashboard/examples/show", type: :view do
|
|
before(:each) do
|
|
assign(:example, Example.create!(
|
|
text: "Word",
|
|
body: "Sentence"
|
|
))
|
|
end
|
|
|
|
it "renders attributes in <p>" do
|
|
render
|
|
expect(rendered).to match(/Word/)
|
|
expect(rendered).to match(/Sentence/)
|
|
end
|
|
end
|
|
end
|