describe ApplicationHelper::Button::OrchestrationStackRetireNow do
  let(:view_context) { setup_view_context_with_sandbox({}) }
  let(:record) { FactoryGirl.create(:orchestration_stack, :retired => retired) }
  let(:button) { described_class.new(view_context, {}, {'record' => record}, {}) }

  describe '#calculate_properties' do
    before { button.calculate_properties }

    context 'when Orchestration Stack is retired' do
      let(:retired) { true }
      it_behaves_like 'a disabled button', 'Orchestration Stack is already retired'
    end
    context 'when OrchestrationStack is not retired' do
      let(:retired) { false }
      it_behaves_like 'an enabled button'
    end
  end
end

Create spec examples for OrchestrationStackRetireNow button class
Create spec examples for OrchestrationStackRetireNow button class
