AutoCommit Don Jul 30 00:03:02 CEST 2015
This commit is contained in:
18
spec/views/survey/questions/show.html.erb_spec.rb
Normal file
18
spec/views/survey/questions/show.html.erb_spec.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "survey/questions/show", :type => :view do
|
||||
before(:each) do
|
||||
@survey_question = assign(:survey_question, Survey::Question.create!(
|
||||
:title => "Title",
|
||||
:text => "MyText",
|
||||
:typ => 1
|
||||
))
|
||||
end
|
||||
|
||||
it "renders attributes in <p>" do
|
||||
render
|
||||
expect(rendered).to match(/Title/)
|
||||
expect(rendered).to match(/MyText/)
|
||||
expect(rendered).to match(/1/)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user