Commit 7786fe7ca84503ac2f00253f7097c754c51c1062
1 parent
001f3bc5
Exists in
master
and in
4 other branches
Fixing specs & spinach since Wiki model does not exists any more
Showing
5 changed files
with
2 additions
and
26 deletions
Show diff stats
features/dashboard/search.feature
| ... | ... | @@ -2,13 +2,8 @@ Feature: Dashboard Search |
| 2 | 2 | Background: |
| 3 | 3 | Given I sign in as a user |
| 4 | 4 | And I own project "Shop" |
| 5 | - And Project "Shop" has wiki page "Contibuting guide" | |
| 6 | 5 | And I visit dashboard search page |
| 7 | 6 | |
| 8 | 7 | Scenario: I should see project I am looking for |
| 9 | 8 | Given I search for "Sho" |
| 10 | 9 | Then I should see "Shop" project link |
| 11 | - | |
| 12 | - Scenario: I should see wiki page I am looking for | |
| 13 | - Given I search for "Contibuting" | |
| 14 | - Then I should see "Contibuting guide" wiki link | |
| 15 | 10 | \ No newline at end of file | ... | ... |
features/steps/dashboard/dashboard_search.rb
| ... | ... | @@ -16,15 +16,4 @@ class DashboardSearch < Spinach::FeatureSteps |
| 16 | 16 | fill_in "dashboard_search", with: "Contibuting" |
| 17 | 17 | click_button "Search" |
| 18 | 18 | end |
| 19 | - | |
| 20 | - And 'Project "Shop" has wiki page "Contibuting guide"' do | |
| 21 | - @wiki_page = create :wiki, | |
| 22 | - project: @project, | |
| 23 | - title: "Contibuting guide", | |
| 24 | - slug: "contributing" | |
| 25 | - end | |
| 26 | - | |
| 27 | - Then 'I should see "Contibuting guide" wiki link' do | |
| 28 | - page.should have_link "Contibuting guide" | |
| 29 | - end | |
| 30 | 19 | end | ... | ... |
spec/factories.rb
spec/services/notification_service_spec.rb
| 1 | 1 | require 'spec_helper' |
| 2 | 2 | |
| 3 | 3 | describe NotificationService do |
| 4 | - # Disable observers to prevent factory trigger notification service | |
| 5 | - before(:all) { ActiveRecord::Base.observers.disable :all } | |
| 6 | - after(:all) { ActiveRecord::Base.observers.enable :all } | |
| 7 | - | |
| 8 | 4 | let(:notification) { NotificationService.new } |
| 9 | 5 | |
| 10 | 6 | describe 'Keys' do | ... | ... |
spec/services/project_transfer_service_spec.rb