Commit ff765bb27ea405b85804348e0c9458519a87ee6a
1 parent
e3f361fa
Exists in
master
and in
4 other branches
Remove issues search rspec since we test it with spinach too
Showing
2 changed files
with
0 additions
and
35 deletions
Show diff stats
features/project/issues/issues.feature
spec/features/issues_spec.rb
| ... | ... | @@ -45,40 +45,6 @@ describe "Issues" do |
| 45 | 45 | end |
| 46 | 46 | end |
| 47 | 47 | |
| 48 | - describe "Search issue", js: true do | |
| 49 | - before do | |
| 50 | - ['foobar', 'foobar2', 'gitlab'].each do |title| | |
| 51 | - create(:issue, | |
| 52 | - author: @user, | |
| 53 | - assignee: @user, | |
| 54 | - project: project, | |
| 55 | - title: title) | |
| 56 | - end | |
| 57 | - end | |
| 58 | - | |
| 59 | - it "should be able to search on different statuses" do | |
| 60 | - issue = Issue.first # with title 'foobar' | |
| 61 | - issue.close | |
| 62 | - | |
| 63 | - visit project_issues_path(project) | |
| 64 | - click_link 'Closed' | |
| 65 | - fill_in 'issue_search', with: 'foobar' | |
| 66 | - | |
| 67 | - page.should have_content 'foobar' | |
| 68 | - page.should_not have_content 'foobar2' | |
| 69 | - page.should_not have_content 'gitlab' | |
| 70 | - end | |
| 71 | - | |
| 72 | - it "should search for term and return the correct results" do | |
| 73 | - visit project_issues_path(project) | |
| 74 | - fill_in 'issue_search', with: 'foobar' | |
| 75 | - | |
| 76 | - page.should have_content 'foobar' | |
| 77 | - page.should have_content 'foobar2' | |
| 78 | - page.should_not have_content 'gitlab' | |
| 79 | - end | |
| 80 | - end | |
| 81 | - | |
| 82 | 48 | describe "Filter issue" do |
| 83 | 49 | before do |
| 84 | 50 | ['foobar', 'barbaz', 'gitlab'].each do |title| | ... | ... |