Sha256: 31a649f5c42f398a4887fae7a9580f62f4910d8a021efc36224191775971edb7
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
require 'spec_helper' RSpec.describe Sociyal::Helpers do describe '#yashare' do let(:view) { ActionView::Base.new } context 'no options specified' do subject { view.yashare } let(:expected) { File.read('./spec/support/default.html').strip } it { is_expected.to eq(expected) } end context 'services specified' do subject { view.yashare(services: :facebook) } let(:expected) { File.read('./spec/support/with_services.html').strip } it { is_expected.to eq(expected) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sociyal-1.0.0 | spec/sociyal/helpers_spec.rb |