Unverified Commit 44452749 authored by Benjamin Neff's avatar Benjamin Neff Committed by Dennis Schubert

Don't depend on the database content when loading the tests

closes #7872
parent d765b340
......@@ -336,16 +336,16 @@ describe UsersController, :type => :controller do
end
context "with inviter" do
[bob, eve].each do |inviter|
sharing = !alice.contact_for(inviter.person).nil?
context sharing ? "when sharing" : "when don't share" do
it "preloads data using gon for the aspect memberships dropdown" do
alice.invited_by = inviter
it "preloads data using gon for the aspect memberships dropdown when sharing with the inviter" do
alice.invited_by = bob
get :getting_started
expect_gon_preloads_for_aspect_membership_dropdown(:inviter, sharing)
end
expect_gon_preloads_for_aspect_membership_dropdown(:inviter, true)
end
it "preloads data using gon for the aspect memberships dropdown when not sharing with the inviter" do
alice.invited_by = eve
get :getting_started
expect_gon_preloads_for_aspect_membership_dropdown(:inviter, false)
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment