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
Background:
Given I sign in as a user
And I own project "Shop"
And Project "Shop" has wiki page "Contibuting guide"
And I visit dashboard search page
Scenario: I should see project I am looking for
Given I search for "Sho"
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
fill_in "dashboard_search", with: "Contibuting"
click_button "Search"
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
......@@ -198,12 +198,6 @@ FactoryGirl.define do
url
end
factory :wiki do
title
content
user
end
factory :snippet do
project
author
......
require 'spec_helper'
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 }
describe 'Keys' do
......
require 'spec_helper'
describe ProjectTransferService do
before(:each) { enable_observers }
context 'namespace -> namespace' do
let(:user) { create(:user) }
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