diff --git a/features/discuss.feature b/features/discuss.feature index 1ea07c5..def7f72 100644 --- a/features/discuss.feature +++ b/features/discuss.feature @@ -1,6 +1,6 @@ Feature: Discuss -Scenario: No parameters and nothing committed +Scenario: (Discuss) No parameters and nothing committed Given a fresh set of repositories When I cd to the user repo And I execute gitcycle branch with a new URL or string @@ -15,7 +15,7 @@ Scenario: No parameters and nothing committed """ And redis entries valid -Scenario: No parameters and something committed +Scenario: (Discuss) No parameters and something committed Given a fresh set of repositories When I cd to the user repo And I execute gitcycle branch with a new URL or string diff --git a/features/steps/gitcycle_steps.rb b/features/steps/gitcycle_steps.rb index b58c27f..3082692 100644 --- a/features/steps/gitcycle_steps.rb +++ b/features/steps/gitcycle_steps.rb @@ -327,7 +327,8 @@ def type(text) 'user' => config['user'], 'source' => collab ? 'some_branch' : 'master' } - if @scenario_title == 'No parameters and something committed' + if @scenario_title.include?("(Discuss)") && @scenario_title.include?("something committed") + should['labels'] = 'Branch - master' should['issue_url'] = $github_url end branch.should == should