Calendar is fullscreen
This commit is contained in:
@@ -1,43 +0,0 @@
|
||||
require "application_system_test_case"
|
||||
|
||||
class PlacesTest < ApplicationSystemTestCase
|
||||
setup do
|
||||
@place = places(:one)
|
||||
end
|
||||
|
||||
test "visiting the index" do
|
||||
visit places_url
|
||||
assert_selector "h1", text: "Places"
|
||||
end
|
||||
|
||||
test "should create place" do
|
||||
visit places_url
|
||||
click_on "New place"
|
||||
|
||||
fill_in "Company", with: @place.company_id
|
||||
fill_in "Name", with: @place.name
|
||||
click_on "Create Place"
|
||||
|
||||
assert_text "Place was successfully created"
|
||||
click_on "Back"
|
||||
end
|
||||
|
||||
test "should update Place" do
|
||||
visit place_url(@place)
|
||||
click_on "Edit this place", match: :first
|
||||
|
||||
fill_in "Company", with: @place.company_id
|
||||
fill_in "Name", with: @place.name
|
||||
click_on "Update Place"
|
||||
|
||||
assert_text "Place was successfully updated"
|
||||
click_on "Back"
|
||||
end
|
||||
|
||||
test "should destroy Place" do
|
||||
visit place_url(@place)
|
||||
click_on "Destroy this place", match: :first
|
||||
|
||||
assert_text "Place was successfully destroyed"
|
||||
end
|
||||
end
|
||||
39
test/system/teams_test.rb
Normal file
39
test/system/teams_test.rb
Normal file
@@ -0,0 +1,39 @@
|
||||
require "application_system_test_case"
|
||||
|
||||
class TeamsTest < ApplicationSystemTestCase
|
||||
setup do
|
||||
@team = teams(:one)
|
||||
end
|
||||
|
||||
test "visiting the index" do
|
||||
visit teams_url
|
||||
assert_selector "h1", text: "Teams"
|
||||
end
|
||||
|
||||
test "should create team" do
|
||||
visit teams_url
|
||||
click_on "New team"
|
||||
|
||||
click_on "Create Team"
|
||||
|
||||
assert_text "Team was successfully created"
|
||||
click_on "Back"
|
||||
end
|
||||
|
||||
test "should update Team" do
|
||||
visit team_url(@team)
|
||||
click_on "Edit this team", match: :first
|
||||
|
||||
click_on "Update Team"
|
||||
|
||||
assert_text "Team was successfully updated"
|
||||
click_on "Back"
|
||||
end
|
||||
|
||||
test "should destroy Team" do
|
||||
visit team_url(@team)
|
||||
click_on "Destroy this team", match: :first
|
||||
|
||||
assert_text "Team was successfully destroyed"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user