mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
25 lines
584 B
Ruby
25 lines
584 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe "user_groups/edit", type: :view do
|
|
before(:each) do
|
|
@user_group = assign(:user_group, UserGroup.create!(
|
|
:name => "MyString",
|
|
:visibility => "MyString",
|
|
:members => ""
|
|
))
|
|
end
|
|
|
|
it "renders the edit user_group form" do
|
|
render
|
|
|
|
assert_select "form[action=?][method=?]", user_group_path(@user_group), "post" do
|
|
|
|
assert_select "input[name=?]", "user_group[name]"
|
|
|
|
assert_select "input[name=?]", "user_group[visibility]"
|
|
|
|
assert_select "input[name=?]", "user_group[members]"
|
|
end
|
|
end
|
|
end
|