Commit 7786fe7c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fixing specs & spinach since Wiki model does not exists any more

parent 001f3bc5
...@@ -2,13 +2,8 @@ Feature: Dashboard Search ...@@ -2,13 +2,8 @@ Feature: Dashboard Search
Background: Background:
Given I sign in as a user Given I sign in as a user
And I own project "Shop" And I own project "Shop"
And Project "Shop" has wiki page "Contibuting guide"
And I visit dashboard search page And I visit dashboard search page
Scenario: I should see project I am looking for Scenario: I should see project I am looking for
Given I search for "Sho" Given I search for "Sho"
Then I should see "Shop" project link Then I should see "Shop" project link
Scenario: I should see wiki page I am looking for
Given I search for "Contibuting"
Then I should see "Contibuting guide" wiki link
\ No newline at end of file
...@@ -16,15 +16,4 @@ class DashboardSearch < Spinach::FeatureSteps ...@@ -16,15 +16,4 @@ class DashboardSearch < Spinach::FeatureSteps
fill_in "dashboard_search", with: "Contibuting" fill_in "dashboard_search", with: "Contibuting"
click_button "Search" click_button "Search"
end end
And 'Project "Shop" has wiki page "Contibuting guide"' do
@wiki_page = create :wiki,
project: @project,
title: "Contibuting guide",
slug: "contributing"
end
Then 'I should see "Contibuting guide" wiki link' do
page.should have_link "Contibuting guide"
end
end end
...@@ -198,12 +198,6 @@ FactoryGirl.define do ...@@ -198,12 +198,6 @@ FactoryGirl.define do
url url
end end
factory :wiki do
title
content
user
end
factory :snippet do factory :snippet do
project project
author author
......
require 'spec_helper' require 'spec_helper'
describe NotificationService do describe NotificationService do
# Disable observers to prevent factory trigger notification service
before(:all) { ActiveRecord::Base.observers.disable :all }
after(:all) { ActiveRecord::Base.observers.enable :all }
let(:notification) { NotificationService.new } let(:notification) { NotificationService.new }
describe 'Keys' do describe 'Keys' do
......
require 'spec_helper' require 'spec_helper'
describe ProjectTransferService do describe ProjectTransferService do
before(:each) { enable_observers }
context 'namespace -> namespace' do context 'namespace -> namespace' do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:group) { create(:group) } let(:group) { create(:group) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment