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

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