Skip to content

Commit

Permalink
Add specs for configuration job textual_provider
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalis committed Apr 13, 2017
1 parent 2aab3c7 commit 6fc0cfc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spec/helpers/configuration_job_helper/textual_summary_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
describe ConfigurationJobHelper::TextualSummary do
include CompressedIds
include ApplicationHelper

let(:zone) { EvmSpecHelper.local_miq_server.zone }
let(:automation_provider) { FactoryGirl.create(:provider_ansible_tower, :name => "ansibletest", :url => "test", :zone => zone) }

it "#textual_provider" do
manager = ManageIQ::Providers::AnsibleTower::AutomationManager.find_by(:provider_id => automation_provider.id)
@record = FactoryGirl.create(:ansible_tower_job, :ext_management_system => manager)
expect(textual_provider[:image]).to eq("svg/vendor-ansible.svg")
expect(textual_provider[:link]).to eq("/automation_manager/explorer/at-#{to_cid(manager.id)}")
end
end

0 comments on commit 6fc0cfc

Please sign in to comment.