Remove unused feature steps.
This commit is contained in:
parent
4641514cbf
commit
9b5b334a79
3 changed files with 0 additions and 50 deletions
|
@ -1,18 +0,0 @@
|
|||
Feature: Project Issue Tracker
|
||||
Background:
|
||||
Given I sign in as a user
|
||||
And I own project "Shop"
|
||||
And project "Shop" has issues enabled
|
||||
And I visit project "Shop" page
|
||||
|
||||
Scenario: I set the issue tracker to "GitLab"
|
||||
When I visit edit project "Shop" page
|
||||
And change the issue tracker to "GitLab"
|
||||
And I save project
|
||||
Then I the project should have "GitLab" as issue tracker
|
||||
|
||||
Scenario: I set the issue tracker to "Redmine"
|
||||
When I visit edit project "Shop" page
|
||||
And change the issue tracker to "Redmine"
|
||||
And I save project
|
||||
Then I the project should have "Redmine" as issue tracker
|
|
@ -1,31 +0,0 @@
|
|||
class Spinach::Features::ProjectIssueTracker < Spinach::FeatureSteps
|
||||
include SharedAuthentication
|
||||
include SharedProject
|
||||
include SharedPaths
|
||||
|
||||
step 'project "Shop" has issues enabled' do
|
||||
@project = Project.find_by(name: "Shop")
|
||||
@project ||= create(:project, name: "Shop", namespace: @user.namespace)
|
||||
@project.issues_enabled = true
|
||||
end
|
||||
|
||||
step 'change the issue tracker to "GitLab"' do
|
||||
select 'GitLab', from: 'project_issues_tracker'
|
||||
end
|
||||
|
||||
step 'I the project should have "GitLab" as issue tracker' do
|
||||
find_field('project_issues_tracker').value.should == 'gitlab'
|
||||
end
|
||||
|
||||
step 'change the issue tracker to "Redmine"' do
|
||||
select 'Redmine', from: 'project_issues_tracker'
|
||||
end
|
||||
|
||||
step 'I the project should have "Redmine" as issue tracker' do
|
||||
find_field('project_issues_tracker').value.should == 'redmine'
|
||||
end
|
||||
|
||||
step 'I save project' do
|
||||
click_button 'Save changes'
|
||||
end
|
||||
end
|
|
@ -12,7 +12,6 @@ describe Gitlab::ReferenceExtractor do
|
|||
end
|
||||
|
||||
it 'extracts JIRA issue references' do
|
||||
Gitlab.config.gitlab.stub(:issues_tracker).and_return('jira')
|
||||
subject.analyze('this one talks about issue JIRA-1234', nil)
|
||||
subject.issues.should == [{ project: nil, id: 'JIRA-1234' }]
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue