* fixing up admin tests after changing their menu label
This commit is contained in:
parent
dffab0bc71
commit
7c7eca0964
|
|
@ -11,25 +11,25 @@ describe "Artifact Update" do
|
|||
before { sign_in user }
|
||||
|
||||
describe "crud" do
|
||||
before { visit admin_jam_ruby_artifact_updates_path }
|
||||
it { should have_selector('h2', text: "Jam Ruby Artifact Updates") }
|
||||
before { visit admin_artifacts_path }
|
||||
it { should have_selector('h2', text: "Artifacts") }
|
||||
|
||||
describe "upload artifact" do
|
||||
|
||||
in_directory_with_file(ARTIFACT_FILE)
|
||||
|
||||
before do
|
||||
visit new_admin_jam_ruby_artifact_update_path
|
||||
fill_in "jam_ruby_artifact_update_version", with: "1"
|
||||
fill_in "jam_ruby_artifact_update_environment", with: "public"
|
||||
select('JamClient/Win32', from: "jam_ruby_artifact_update_product")
|
||||
fill_in "jam_ruby_artifact_update_environment", with: "public"
|
||||
attach_file("jam_ruby_artifact_update_uri", ARTIFACT_FILE)
|
||||
visit new_admin_artifact_path
|
||||
fill_in "artifacts_version", with: "1"
|
||||
fill_in "artifacts_environment", with: "public"
|
||||
select('JamClient/Win32', from: "artifacts_product")
|
||||
fill_in "artifacts_environment", with: "public"
|
||||
attach_file("artifacts_uri", ARTIFACT_FILE)
|
||||
click_button "Create Artifact update"
|
||||
end
|
||||
|
||||
it {
|
||||
should have_selector('#main_content .panel:first-child h3', text: "Jam Ruby Artifact Update Details" ) }
|
||||
should have_selector('#main_content .panel:first-child h3', text: "Artifacts Details" ) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ describe InvitedUser do
|
|||
describe "enduser management" do
|
||||
|
||||
# let's go the management page for users
|
||||
before { visit admin_jam_ruby_invited_users_path }
|
||||
it { should have_selector('h2', text: "Jam Ruby Invited Users") }
|
||||
before { visit admin_invited_users_path }
|
||||
it { should have_selector('h2', text: "Invited Users") }
|
||||
|
||||
describe "create service invite" do
|
||||
|
||||
|
|
@ -21,15 +21,13 @@ describe InvitedUser do
|
|||
|
||||
# create a new user
|
||||
UserMailer.deliveries.clear
|
||||
visit new_admin_jam_ruby_invited_user_path
|
||||
fill_in "jam_ruby_invited_user_email", with: "some_silly_guy@jamkazam.com"
|
||||
#fill_in "jam_ruby_invited_user_sender_id", with: "some_silly_guy@jamkazam.com"
|
||||
#fill_in "jam_ruby_invited_user_autofriend", with: "some_silly_guy@jamkazam.com"
|
||||
visit new_admin_invited_user_path
|
||||
fill_in "invited_users_email", with: "some_silly_guy@jamkazam.com"
|
||||
click_button "Create Invited user"
|
||||
|
||||
end
|
||||
|
||||
it { should have_selector('#main_content .panel:first-child h3', text: "Jam Ruby Invited User Details" ); }
|
||||
it { should have_selector('#main_content .panel:first-child h3', text: "Invited Users Details" ); }
|
||||
it { UserMailer.deliveries.length.should == 1 }
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue