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 5ae87db
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 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,7 @@
end

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

before do
session[:settings] = {
Expand All @@ -67,6 +67,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('template name')
expect(response.body).not_to include('stack01')
end
end
end

Expand Down

0 comments on commit 5ae87db

Please sign in to comment.