MS DG down to four failures
This commit is contained in:
parent
835f808e5a
commit
5c431d933f
9 changed files with 21 additions and 26 deletions
|
|
@ -3,8 +3,6 @@
|
||||||
# the COPYRIGHT file.
|
# the COPYRIGHT file.
|
||||||
|
|
||||||
module ApplicationHelper
|
module ApplicationHelper
|
||||||
include Rails.application.routes.url_helpers
|
|
||||||
|
|
||||||
def how_long_ago(obj)
|
def how_long_ago(obj)
|
||||||
timeago(obj.created_at)
|
timeago(obj.created_at)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
module NotificationsHelper
|
module NotificationsHelper
|
||||||
include PeopleHelper
|
include PeopleHelper
|
||||||
include Rails.application.routes.url_helpers
|
|
||||||
|
|
||||||
|
|
||||||
def object_link(note, actors)
|
def object_link(note, actors)
|
||||||
target_type = note.popup_translation_key
|
target_type = note.popup_translation_key
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
module PeopleHelper
|
module PeopleHelper
|
||||||
include ERB::Util
|
include ERB::Util
|
||||||
include Rails.application.routes.url_helpers
|
|
||||||
|
|
||||||
def search_header
|
def search_header
|
||||||
if search_query.blank?
|
if search_query.blank?
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,9 @@ Diaspora::Application.configure do
|
||||||
# ActionMailer::Base.deliveries array.
|
# ActionMailer::Base.deliveries array.
|
||||||
config.action_mailer.delivery_method = :test
|
config.action_mailer.delivery_method = :test
|
||||||
config.active_support.deprecation = :stderr
|
config.active_support.deprecation = :stderr
|
||||||
config.threadsafe!
|
|
||||||
|
# fixes url helper issue in rspec
|
||||||
|
#config.threadsafe!
|
||||||
|
|
||||||
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
||||||
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ describe PostsController do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'assumes guids less than 8 chars are ids and not guids' do
|
it 'assumes guids less than 8 chars are ids and not guids' do
|
||||||
Post.should_receive(:where).with(hash_including(:id => @status.id)).and_return(Post)
|
Post.should_receive(:where).with(hash_including(:id => @status.id.to_s)).and_return(Post)
|
||||||
get :show, :id => @status.id
|
get :show, :id => @status.id
|
||||||
response.should be_success
|
response.should be_success
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe ApplicationHelper do
|
describe ApplicationHelper do
|
||||||
include Rails.application.routes.url_helpers
|
|
||||||
|
|
||||||
before do
|
before do
|
||||||
@user = alice
|
@user = alice
|
||||||
@person = Factory(:person)
|
@person = Factory(:person)
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ require 'spec_helper'
|
||||||
|
|
||||||
describe NotificationsHelper do
|
describe NotificationsHelper do
|
||||||
include ApplicationHelper
|
include ApplicationHelper
|
||||||
include Rails.application.routes.url_helpers
|
|
||||||
|
|
||||||
before do
|
before do
|
||||||
@user = Factory(:user)
|
@user = Factory(:user)
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,11 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe PeopleHelper do
|
describe PeopleHelper do
|
||||||
include Rails.application.routes.url_helpers
|
|
||||||
|
|
||||||
before do
|
before do
|
||||||
@user = alice
|
@user = alice
|
||||||
@person = Factory(:person)
|
@person = Factory(:person)
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "#person_image_link" do
|
describe "#person_image_link" do
|
||||||
it "returns an empty string if person is nil" do
|
it "returns an empty string if person is nil" do
|
||||||
person_image_link(nil).should == ""
|
person_image_link(nil).should == ""
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,12 @@ describe TagsHelper do
|
||||||
helper.stub(:search_query).and_return('foo@bar.com')
|
helper.stub(:search_query).and_return('foo@bar.com')
|
||||||
helper.looking_for_tag_link.should be_nil
|
helper.looking_for_tag_link.should be_nil
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'returns nil if it normalizes to blank' do
|
it 'returns nil if it normalizes to blank' do
|
||||||
helper.stub(:search_query).and_return('++')
|
helper.stub(:search_query).and_return('++')
|
||||||
helper.looking_for_tag_link.should be_nil
|
helper.looking_for_tag_link.should be_nil
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'returns a link to the tag otherwise' do
|
it 'returns a link to the tag otherwise' do
|
||||||
helper.stub(:search_query).and_return('foo')
|
helper.stub(:search_query).and_return('foo')
|
||||||
helper.looking_for_tag_link.should include(helper.tag_link)
|
helper.looking_for_tag_link.should include(helper.tag_link)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue