Sha256: c2dd9f4b12173a1cd995874dad355cbc0b86d9c230eb58b88eb41947cbeeeac6
Contents?: true
Size: 454 Bytes
Versions: 4
Compression:
Stored size: 454 Bytes
Contents
require 'spec_helper' describe 'tasuku/taskables/questions/answers/_form.html.erb' do let(:user) { create :user } let(:question) { create :question_with_options } before do render partial: 'tasuku/taskables/questions/answers/form.html.erb', locals: { question: question } end it 'renders a radio button for each option' do question.options.each do |option| expect(rendered).to match option.text end end end
Version data entries
4 entries across 4 versions & 1 rubygems