1
이 스 니펫 뒤에 어떤 일이 발생했는지 알고 싶습니다.이 rspec 스 니펫을 구현하는 방법
Ruby가이 구문을 어떻게 구현합니까?
feature "Course" do DO_SOMETHING end
scenario "A Course without name should not be accepted" do
end
루비에서
feature "Course" do
let(:school) {School.make!}
context "Logged in" do
before(:each) do
switch_to_subdomain(school)
end
context "In the new course form" do
before(:each) do
click_link("Courses")
click_link("New course")
end
scenario "New course" do
end
scenario "A Course without name should not be accepted" do
end
scenario "A new course should not be created if there is another one with the same name in the same school" do
end
end
end
end