mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
25 lines
548 B
Ruby
25 lines
548 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe "user_groups/new", type: :view do
|
|
before(:each) do
|
|
assign(:user_group, UserGroup.new(
|
|
:name => "MyString",
|
|
:visibility => "MyString",
|
|
:members => ""
|
|
))
|
|
end
|
|
|
|
it "renders new user_group form" do
|
|
render
|
|
|
|
assert_select "form[action=?][method=?]", user_groups_path, "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
|