blob: f6ad92e4933b0a3c64f04d1ff752f869cf25b27f (
plain) (
tree)
|
|
require 'rails_helper'
RSpec.describe "events/edit", type: :view do
let(:event) {
Event.create!(
name: "MyString"
)
}
before(:each) do
assign(:event, event)
end
it "renders the edit event form" do
render
assert_select "form[action=?][method=?]", event_path(event), "post" do
assert_select "input[name=?]", "event[name]"
end
end
end
|