Skip to content
Extraits de code Groupes Projets
Valider 10345b14 rédigé par Dan Hansen's avatar Dan Hansen
Parcourir les fichiers

generate jasmine fixture with posts

parent c9545920
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -67,6 +67,11 @@ describe AspectsController do
get :index, :prefill => "reshare things"
save_fixture(html_for("body"), "aspects_index_services")
end
it 'generates a jasmine fixture with posts' do
@user.post(:status_message, :message => "hello", :to => @aspect1.id)
get :index
save_fixture(html_for("body"), "aspects_index_with_posts")
end
context 'filtering' do
before do
@posts = []
......
......@@ -46,9 +46,10 @@ describe("Diaspora", function() {
});
});
it("has to have a certain DOM structure", function() {
spec.loadFixture("aspects_index");
spec.loadFixture("aspects_index_with_posts");
var $post = $("#main_stream").children(".stream_element:first"),
$contentParagraph = $post.children(".content").children(".from").children("p"),
$infoDiv = $contentParagraph.closest(".from").siblings(".info");
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter