class MockPullRequest
Constants
- BASE_BRANCH_NAME
- DESCRIPTION
- FEATURE_BRANCH_NAME
- HTML_URL
- NUMBER
Public Class Methods
new(attributes = Struct.new(:description, :html_url, :feature_branch_name, :base_branch_name, :number).new)
click to toggle source
# File spec/support/mock_pull_request.rb, line 8 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