Sha256: c1865c993207f9df6c0fa7c73e5d812e29bd870e2251c164ef5e291072ad27b9

Contents?: true

Size: 840 Bytes

Versions: 10

Compression:

Stored size: 840 Bytes

Contents

class MockPullRequest < GitReflow::GitServer::PullRequest
  DESCRIPTION         = "Bingo! Unity."
  HTML_URL            = "https://github.com/reenhanced/gitreflow/pulls/0"
  FEATURE_BRANCH_NAME = "feature_branch"
  BASE_BRANCH_NAME    = "base"
  NUMBER              = 0

  def initialize(attributes = Struct.new(:description, :html_url, :feature_branch_name, :base_branch_name, :number).new)
    self.description         = attributes.description || DESCRIPTION
    self.html_url            = attributes.html_url || HTML_URL
    self.feature_branch_name = attributes.feature_branch_name || FEATURE_BRANCH_NAME
    self.base_branch_name    = attributes.base_branch_name || BASE_BRANCH_NAME
    self.build               = Build.new
    self.number              = attributes.number || NUMBER
    self.source_object       = attributes
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
git_reflow-0.9.9 spec/support/mock_pull_request.rb
git_reflow-0.9.8 spec/support/mock_pull_request.rb
git_reflow-0.9.7 spec/support/mock_pull_request.rb
git_reflow-0.9.6 spec/support/mock_pull_request.rb
git_reflow-0.9.5 spec/support/mock_pull_request.rb
git_reflow-0.9.4 spec/support/mock_pull_request.rb
git_reflow-0.9.3 spec/support/mock_pull_request.rb
git_reflow-0.9.2 spec/support/mock_pull_request.rb
git_reflow-0.9.1 spec/support/mock_pull_request.rb
git_reflow-0.9.0 spec/support/mock_pull_request.rb