14 lines
229 B
Ruby
14 lines
229 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe "topics/index", :type => :view do
|
|
before(:each) do
|
|
assign(:topics, [
|
|
Topic.create!(),
|
|
Topic.create!()
|
|
])
|
|
end
|
|
|
|
it "renders a list of topics" do
|
|
render
|
|
end
|
|
end
|