remove outer (deprecated) describe blocks from shared examples

This commit is contained in:
Jonne Haß 2014-01-06 19:43:00 +01:00
parent a0bbd899de
commit b5854d3172
4 changed files with 300 additions and 310 deletions

View file

@ -4,7 +4,6 @@
require 'spec_helper' require 'spec_helper'
describe 'deleteing your account' do
shared_examples_for 'it removes the person associations' do shared_examples_for 'it removes the person associations' do
it "removes all of the person's posts" do it "removes all of the person's posts" do
Post.where(:author_id => @person.id).count.should == 0 Post.where(:author_id => @person.id).count.should == 0
@ -38,5 +37,3 @@ describe 'deleteing your account' do
ShareVisibility.for_contacts_of_a_person(@person).should be_empty ShareVisibility.for_contacts_of_a_person(@person).should be_empty
end end
end end
end

View file

@ -4,7 +4,6 @@
require 'spec_helper' require 'spec_helper'
describe Diaspora::Relayable do
shared_examples_for "it is relayable" do shared_examples_for "it is relayable" do
describe 'interacted_at' do describe 'interacted_at' do
@ -128,5 +127,4 @@ describe Diaspora::Relayable do
end end
end end
end end
end

View file

@ -1,6 +1,5 @@
require 'spec_helper' require 'spec_helper'
describe 'Streams' do
shared_examples_for 'it is a stream' do shared_examples_for 'it is a stream' do
context 'required methods for display' do context 'required methods for display' do
it '#title' do it '#title' do
@ -42,4 +41,3 @@ describe 'Streams' do
end end
end end
end end
end

View file

@ -5,7 +5,6 @@
require 'spec_helper' require 'spec_helper'
describe Diaspora::Taggable do
shared_examples_for "it is taggable" do shared_examples_for "it is taggable" do
include ActionView::Helpers::UrlHelper include ActionView::Helpers::UrlHelper
@ -165,5 +164,3 @@ describe Diaspora::Taggable do
end end
end end
end end
end