diff options
author | Sean McGivern <sean@gitlab.com> | 2018-07-17 16:58:14 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2018-07-17 16:58:14 +0300 |
commit | fc580935ca2171d4f5628818aa4826fbce4a7261 (patch) | |
tree | 0afc54fe28001891da9ae0ffdb3c83eae517261d /spec/lib | |
parent | 1e2c28ab4194217ffcacd4e2e6cd41b1cc50bb09 (diff) |
Keep #absolute_image_urls as a private instance method
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/hook_data/base_builder_spec.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/spec/lib/gitlab/hook_data/base_builder_spec.rb b/spec/lib/gitlab/hook_data/base_builder_spec.rb index c5cc6177b1e..a921dd766c3 100644 --- a/spec/lib/gitlab/hook_data/base_builder_spec.rb +++ b/spec/lib/gitlab/hook_data/base_builder_spec.rb @@ -1,7 +1,15 @@ require 'spec_helper' describe Gitlab::HookData::BaseBuilder do - describe '.absolute_image_urls' do + describe '#absolute_image_urls' do + let(:subclass) do + Class.new(described_class) do + public :absolute_image_urls + end + end + + subject { subclass.new(nil) } + using RSpec::Parameterized::TableSyntax where do @@ -50,7 +58,7 @@ describe Gitlab::HookData::BaseBuilder do end with_them do - it { expect(described_class.absolute_image_urls(input)).to eq(output) } + it { expect(subject.absolute_image_urls(input)).to eq(output) } end end end |