diff --git a/spec/controllers/notifications_controller_spec.rb b/spec/controllers/notifications_controller_spec.rb index 1098e1321..bc98c798b 100644 --- a/spec/controllers/notifications_controller_spec.rb +++ b/spec/controllers/notifications_controller_spec.rb @@ -108,12 +108,10 @@ describe NotificationsController, :type => :controller do end it "should provide a contacts menu for start sharing notifications" do - skip # TODO - eve.share_with(alice.person, eve.aspects.first) get :index, "per_page" => 5 - expect(Nokogiri(response.body).css('.aspect_membership')).not_to be_empty + expect(Nokogiri(response.body).css(".aspect_membership")).not_to be_empty end it 'succeeds on mobile' do diff --git a/spec/misc_spec.rb b/spec/misc_spec.rb index b33b296c0..721b4ddce 100644 --- a/spec/misc_spec.rb +++ b/spec/misc_spec.rb @@ -70,10 +70,9 @@ describe 'making sure the spec runner works' do end end - describe '#post' do - it 'creates a notification with a mention' do - skip("TODO: handle local receive") # TODO - expect{ + describe "#post" do + it "creates a notification with a mention" do + expect { alice.post(:status_message, :text => "@{Bob Grimn; #{bob.person.diaspora_handle}} you are silly", :to => alice.aspects.find_by_name('generic')) }.to change(Notification, :count).by(1) end diff --git a/spec/services/post_service_spec.rb b/spec/services/post_service_spec.rb index bc17a670c..2f2d4764f 100644 --- a/spec/services/post_service_spec.rb +++ b/spec/services/post_service_spec.rb @@ -123,8 +123,6 @@ describe PostService do end it "marks a corresponding mention notification as read" do - skip("TODO: create local notifications") # TODO - status_text = "this is a text mentioning @{Mention User ; #{alice.diaspora_handle}} ... have fun testing!" mention_post = bob.post(:status_message, text: status_text, public: true)