Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRaphael Sofaer <raphael@joindiaspora.com>2011-07-15 22:23:44 +0400
committerRaphael Sofaer <raphael@joindiaspora.com>2011-07-15 22:23:44 +0400
commitf60a748c21d48fc59503c45b599ba6a020583a51 (patch)
tree91f76abcc6a01ffdcabad77e16a799d0d81b863f /spec
parent37e939d4761f6805898d47573e64f834ed6c71a7 (diff)
Ajax in the contacts for mentioning after page load
Diffstat (limited to 'spec')
-rw-r--r--spec/controllers/contacts_controller_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/controllers/contacts_controller_spec.rb b/spec/controllers/contacts_controller_spec.rb
index 5720a6fe2..d362f135e 100644
--- a/spec/controllers/contacts_controller_spec.rb
+++ b/spec/controllers/contacts_controller_spec.rb
@@ -62,6 +62,12 @@ describe ContactsController do
contacts.to_set.should == bob.contacts.to_set
end
+ it 'will return the contacts for multiple aspects' do
+ get :index, :aspect_ids => bob.aspect_ids, :format => 'json'
+ assigns[:people].should == bob.contacts.map(&:person)
+ response.should be_success
+ end
+
it "generates a jasmine fixture", :fixture => true do
get :index
save_fixture(html_for("body"), "aspects_manage")