mastodon/spec/views/user_groups/show.html.haml_spec.rb

19 lines
416 B
Ruby
Raw Normal View History

2019-08-27 17:05:17 +02:00
require 'rails_helper'
RSpec.describe "user_groups/show", type: :view do
before(:each) do
@user_group = assign(:user_group, UserGroup.create!(
:name => "Name",
:visibility => "Visibility",
:members => ""
))
end
it "renders attributes in <p>" do
render
expect(rendered).to match(/Name/)
expect(rendered).to match(/Visibility/)
expect(rendered).to match(//)
end
end