Sha256: bb3f94e4d217de4c16e1addc59c9b757766e951ba27e24503fdd435924164cf0
Contents?: true
Size: 918 Bytes
Versions: 34
Compression:
Stored size: 918 Bytes
Contents
require 'spec_helper' describe WoopleTheme::Dashboard::UserAndStatusPresenter do describe '#image' do context 'no image' do subject do data = OpenStruct.new image: '/assets/retina_thumb/missing.png', name: 'GOATSE', status_color: :red, status_description: 'GOATSE' WoopleTheme::Dashboard::UserAndStatusPresenter.new(data).image end it 'returns the missing profile path' do should eq 'woople-theme/missing-profile.png' end end context 'has image' do profile_image_url = 'https://woople.s3.amazonaws.com/gwar.jpg' subject do data = OpenStruct.new image: profile_image_url, name: 'GOATSE', status_color: :red, status_description: 'GOATSE' WoopleTheme::Dashboard::UserAndStatusPresenter.new(data).image end it 'returns the profile image url as is' do should eq profile_image_url end end end end
Version data entries
34 entries across 34 versions & 1 rubygems