Skip to content

Commit

Permalink
added test coverage for Service#custom_actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yrudman committed Jan 10, 2018
1 parent e3a50fe commit 5bbcb20
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions spec/models/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -808,4 +808,23 @@ def create_deep_tree
@service_c121 = FactoryGirl.create(:service, :service => @service_c12)
@service_c2 = FactoryGirl.create(:service, :service => @service)
end

context "custom actions" do
let(:service_template) { FactoryGirl.create(:service_template) }
let(:service) { FactoryGirl.create(:service, :service_template => service_template) }

describe "#custom_actions" do
it "get list of custom actions from linked service template" do
expect(service_template).to receive(:custom_actions)
service.custom_actions
end
end

describe "#custom_action_buttons" do
it "get list of custom action buttons from linked service template" do
expect(service_template).to receive(:custom_action_buttons)
service.custom_action_buttons
end
end
end
end

0 comments on commit 5bbcb20

Please sign in to comment.