diff options
Diffstat (limited to 'spec/views/groups/observability.html.haml_spec.rb')
-rw-r--r-- | spec/views/groups/observability.html.haml_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/views/groups/observability.html.haml_spec.rb b/spec/views/groups/observability.html.haml_spec.rb new file mode 100644 index 00000000000..db280d5a2ba --- /dev/null +++ b/spec/views/groups/observability.html.haml_spec.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe 'groups/observability/index' do + let_it_be(:iframe_url) { "foo.test" } + + before do + assign(:observability_iframe_src, iframe_url) + end + + it 'renders as expected' do + render + page = Capybara.string(rendered) + iframe = page.find('iframe#observability-ui-iframe') + expect(iframe['src']).to eq(iframe_url) + end +end |