나는 아직 비교적 새로운 레일입니다. 현재 단계에서 붙어 :레일 오이 시나리오
And I should see "THX-1138"
놀랍게도 지나쳤습니다. 그러나 나는 행복한 길의 마지막 단계에 머물러있다. 다음은 내 오류의 설명입니다 : 내 paths.rb에서
Then I should be on the Similar Movies page for "Star Wars" # features/step_definitions/web_steps.rb:230
And I should see "THX-1138" # features/Search_movie_by_director.feature:25
Ambiguous match of "I should see "THX-1138"":
features/step_definitions/movie_steps.rb:12:in `/^(?:|I)should see "([^"]*)"$/'
features/step_definitions/web_steps.rb:105:in `/^(?:|I)should see "([^"]*)"$/'
You can run again with --guess to make Cucumber be more smart about it
(Cucumber::Ambiguous)
features/Search_movie_by_director.feature:25:in `And I should see "THX-1138"'
는 I했습니다 입력 : 내 영화 단계에서
When /the Similar Movies page for "(.*)"/
"/movies/the_same_director/xxx%20XXX"
(이 관련 의심) 나는했습니다 입력 :
Then /^(?:|I)should see "([^"]*)"$/ do |title|
if page.respond_to? :should
page.should have_content(title)
else
assert page.has_content?(title)
end
end
그리고 마지막으로 내 movie_controller.rb에서 :
def the_same_director
#left it empty for I think its relevant to the happy scenerio
end
누군가 올바른 방향으로 나를 가리 키길 바랍니다.
의견을 보내 주신 카일에게 감사드립니다. – user3435842