Sha256: 425da577b4abdacd82a3ac08fec16dce34ea2c7244c810b7fd17f9453020dce0
Contents?: true
Size: 979 Bytes
Versions: 2
Compression:
Stored size: 979 Bytes
Contents
require 'spec_helper' require 'views/tasuku/taskables/illustration_spec' describe 'tasuku/taskables/questions/_question.html.erb' do let(:user) { create :user } context 'for questions that have an image or video' do let(:question) { create :question_with_options, image: fixture("doge.jpg"), video_url: 'https://www.youtube.com/watch?v=z9Uz1icjwrM' } before do render partial: 'tasuku/taskables/questions/question.html.erb', locals: { question: question, current_author: user } end alias_method :request, :question it_behaves_like 'illustrations' end context 'for questions that have no image or video' do let(:question) { create :question_with_options } before do render partial: 'tasuku/taskables/questions/question.html.erb', locals: { question: question, current_author: user } end alias_method :request, :question it_behaves_like 'no illustrations' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tasuku-1.1.0 | spec/views/tasuku/taskables/questions/_question.html.erb_spec.rb |
tasuku-1.0.1 | spec/views/tasuku/taskables/questions/_question.html.erb_spec.rb |