remove outer (deprecated) describe blocks from shared examples
This commit is contained in:
parent
a0bbd899de
commit
b5854d3172
4 changed files with 300 additions and 310 deletions
|
|
@ -4,8 +4,7 @@
|
|||
|
||||
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
|
||||
Post.where(:author_id => @person.id).count.should == 0
|
||||
end
|
||||
|
|
@ -37,6 +36,4 @@ describe 'deleteing your account' do
|
|||
it "deletes the share visibilities on the person's posts" do
|
||||
ShareVisibility.for_contacts_of_a_person(@person).should be_empty
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@
|
|||
|
||||
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
|
||||
it 'sets the interacted at of the parent to the created at of the relayable post' do
|
||||
|
|
@ -127,6 +126,5 @@ describe Diaspora::Relayable do
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
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
|
||||
it '#title' do
|
||||
@stream.title.should_not be_nil
|
||||
|
|
@ -41,5 +40,4 @@ describe 'Streams' do
|
|||
@stream.publisher.should be_a(Publisher)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -5,8 +5,7 @@
|
|||
|
||||
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
|
||||
|
||||
def tag_link(s)
|
||||
|
|
@ -164,6 +163,4 @@ describe Diaspora::Taggable do
|
|||
@object.tag_strings.should =~ arr
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue