Sha256: fd97ae0d496389f0c73b17b53a9b90c394d02e1a9e11ca3f64d455de2323b8f9

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 Bytes

Contents

require 'spec_helper'

describe 'tasks/taskables/questions/answers/_form.html.erb' do
  let(:user)     { create :user }
  let(:question) { create :question_with_options }

  before do
    render partial: 'tasks/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

1 entries across 1 versions & 1 rubygems

Version Path
tasuku-0.0.1 spec/views/tasks/taskables/questions/answers/_form.html.erb_spec.rb