diff options
author | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-05-04 17:45:18 -0400 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-04 23:45:18 +0200 |
commit | f9d398e8fb2fe17694949ec1654df60298b0004b (patch) | |
tree | d5324a858a3512b93f1195cd82e4de1a9882b52a /spec/views/stream_entries | |
parent | 74c8ca699c37ebdb0e3c6f0648f9f90a4f1f8f89 (diff) |
Remove the react-rails gem (#2801)
* Remove react-rails gem * Fix broken view spec
Diffstat (limited to 'spec/views/stream_entries')
-rw-r--r-- | spec/views/stream_entries/show.html.haml_spec.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/spec/views/stream_entries/show.html.haml_spec.rb b/spec/views/stream_entries/show.html.haml_spec.rb index 0dd150524..7cbdf6762 100644 --- a/spec/views/stream_entries/show.html.haml_spec.rb +++ b/spec/views/stream_entries/show.html.haml_spec.rb @@ -1,12 +1,17 @@ +# frozen_string_literal: true + require 'rails_helper' -$LOAD_PATH << '../lib' -require 'tag_manager' -describe 'stream_entries/show.html.haml' do +describe 'stream_entries/show.html.haml', without_verify_partial_doubles: true do before do double(:api_oembed_url => '') double(:account_stream_entry_url => '') allow(view).to receive(:show_landing_strip?).and_return(true) + allow(view).to receive(:site_title).and_return('example site') + allow(view).to receive(:site_hostname).and_return('example.com') + allow(view).to receive(:full_asset_url).and_return('//asset.host/image.svg') + allow(view).to receive(:local_time) + allow(view).to receive(:local_time_ago) end it 'has valid author h-card and basic data for a detailed_status' do |