-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Back button to policy simulation page for non-explorer
- Loading branch information
Hilda Stastna
committed
Aug 26, 2019
1 parent
4e569d5
commit c76b7ed
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
describe 'vm_common/_policies.html.haml' do | ||
before do | ||
assign(:policy_options, :out_of_scope => true, :passed => true, :failed => true) | ||
assign(:policy_simulation_tree, TreeBuilderPolicySimulation.new(:policy_simulation_tree, {}, true)) | ||
assign(:record, FactoryBot.create(:vm_infra)) | ||
set_controller_for_view('vm_or_template') | ||
end | ||
|
||
it 'renders Back button for non explorer screens' do | ||
render :partial => 'vm_common/policies' | ||
expect(response).to include('<a class="btn btn-default" alt="Back" title="Back" rel="nofollow" data-method="post" href="/vm/policy_sim?continue=true">Back</a>') | ||
end | ||
end |