Sha256: 8c64e00da29810728e2782d129c23ce39f7e70ee7d79c0b97169b5b09325292b
Contents?: true
Size: 996 Bytes
Versions: 2
Compression:
Stored size: 996 Bytes
Contents
require 'spec_helper' require 'views/tasuku/taskables/illustration_spec' describe 'tasuku/taskables/text/requests/_request.html.erb' do let(:user) { create :user } context 'for text requests that have an image or video' do let(:text_request) { create :text_request, image: fixture("doge.jpg"), video_url: 'https://www.youtube.com/watch?v=z9Uz1icjwrM' } before do render partial: 'tasuku/taskables/text/requests/request.html.erb', locals: { request: text_request, current_author: user } end alias_method :request, :text_request it_behaves_like 'illustrations' end context 'for text requests that have no image or video' do let(:text_request) { create :text_request } before do render partial: 'tasuku/taskables/text/requests/request.html.erb', locals: { request: text_request, current_author: user } end alias_method :request, :text_request 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/text/requests/_request.html.erb_spec.rb |
tasuku-1.0.1 | spec/views/tasuku/taskables/text/requests/_request.html.erb_spec.rb |