Skip to content

Commit

Permalink
Spec for correctly rendering OT name
Browse files Browse the repository at this point in the history
  • Loading branch information
mzazrivec committed Aug 8, 2018
1 parent e7b82f4 commit 37ecf74
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion spec/controllers/orchestration_stack_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
end

context "orchestration templates" do
let(:record) { FactoryGirl.create(:orchestration_stack_cloud_with_template) }
let(:ems) { FactoryGirl.create(:ems_cloud) }
let(:record) { FactoryGirl.create(:orchestration_stack_cloud_with_template, :ext_management_system => ems, :name => 'stack01') }

before do
session[:settings] = {
Expand All @@ -67,6 +68,12 @@
expect(response.status).to eq(200)
expect(response).to render_template(:partial => "orchestration_stack/_stack_orchestration_template")
end

it "renders template name correctly" do
expect(response.status).to eq(200)
expect(response.body).to include("<h1>\ntemplate name")
expect(response.body).not_to include("<h1>\nstack01")
end
end
end

Expand Down

0 comments on commit 37ecf74

Please sign in to comment.