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

Version Path
tasuku-1.1.0 spec/views/tasuku/taskables/questions/answers/_form.html.erb_spec.rb
tasuku-1.0.1 spec/views/tasuku/taskables/questions/answers/_form.html.erb_spec.rb
tasuku-0.1.1 spec/views/tasuku/taskables/questions/answers/_form.html.erb_spec.rb
tasuku-0.1.0 spec/views/tasuku/taskables/questions/answers/_form.html.erb_spec.rb