forked from bofh/fetsite
AutoCommit Don Jul 30 00:03:02 CEST 2015
This commit is contained in:
22
spec/views/survey/answers/index.html.erb_spec.rb
Normal file
22
spec/views/survey/answers/index.html.erb_spec.rb
Normal file
@@ -0,0 +1,22 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "survey/answers/index", :type => :view do
|
||||
before(:each) do
|
||||
assign(:survey_answers, [
|
||||
Survey::Answer.create!(
|
||||
:choice => nil,
|
||||
:user => nil
|
||||
),
|
||||
Survey::Answer.create!(
|
||||
:choice => nil,
|
||||
:user => nil
|
||||
)
|
||||
])
|
||||
end
|
||||
|
||||
it "renders a list of survey/answers" do
|
||||
render
|
||||
assert_select "tr>td", :text => nil.to_s, :count => 2
|
||||
assert_select "tr>td", :text => nil.to_s, :count => 2
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user