mastodon/spec/views/user_groups/new.html.haml_spec.rb
2019-08-27 17:05:17 +02:00

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