Sha256: a3b9af938b8dd58435a14c736ee7d74902ba65ce9872b6494dedca898f393902

Contents?: true

Size: 688 Bytes

Versions: 10

Compression:

Stored size: 688 Bytes

Contents

module GitReflow
  module RSpec
    # @nodoc
    module WorkflowHelpers
      def use_workflow(path)
        allow(GitReflow::Workflows::Core).to receive(:load_workflow).and_return(
          GitReflow::Workflows::Core.load_raw_workflow(File.read(path))
        )
      end

      def suppress_loading_of_external_workflows
        allow(GitReflow::Workflows::Core).to receive(:load__workflow).with("#{GitReflow.git_root_dir}/Workflow").and_return(false)
        return if GitReflow::Config.get('reflow.workflow').to_s.empty?
        allow(GitReflow::Workflows::Core).to receive(:load_workflow).with(GitReflow::Config.get('reflow.workflow')).and_return(false)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
git_reflow-0.9.9 lib/git_reflow/rspec/workflow_helpers.rb
git_reflow-0.9.8 lib/git_reflow/rspec/workflow_helpers.rb
git_reflow-0.9.7 lib/git_reflow/rspec/workflow_helpers.rb
git_reflow-0.9.6 lib/git_reflow/rspec/workflow_helpers.rb
git_reflow-0.9.5 lib/git_reflow/rspec/workflow_helpers.rb
git_reflow-0.9.4 lib/git_reflow/rspec/workflow_helpers.rb
git_reflow-0.9.3 lib/git_reflow/rspec/workflow_helpers.rb
git_reflow-0.9.2 lib/git_reflow/rspec/workflow_helpers.rb
git_reflow-0.9.1 lib/git_reflow/rspec/workflow_helpers.rb
git_reflow-0.9.0 lib/git_reflow/rspec/workflow_helpers.rb