metamaps--metamaps/spec/views/topics/new.html.erb_spec.rb

14 lines
261 B
Ruby

require 'rails_helper'
RSpec.describe "topics/new", :type => :view do
before(:each) do
assign(:topic, Topic.new())
end
it "renders new topic form" do
render
assert_select "form[action=?][method=?]", topics_path, "post" do
end
end
end