사용자 동의 테스트를 작성 중입니다. 이 앱은 아직 구현하지 않은 factory_girl을 사용하는 모의 사용자들로 구성됩니다. 하지만이 시점에서, poltergeist/turnip/rspec은 잘 작동하지만 디렉터리 구조가 마음에 들지 않아 내 단계와 사양이 별도의 파일이지만 많은 기능을 공유하기 때문에 순무를 올바르게 사용하지 않는 것처럼 느껴집니다. 사양/승인/chat.feature가비 레일 애플리케이션의 순번/rspec/steps 디렉토리 구조
@group_chat
Scenario: ...
Given ...
And ...
Then ...
무엇 chat_spec.rb에 대해 포함하는 동안
Gemfile
Gemfile.lock
spec/
│
├── acceptance
│ ├── homepage.feature
│ ├── chat.feature
│ │
│ │── steps
│ ├── homepage_steps.rb
│ ├── chat_steps.rb
│
├── chat_spec.rb
├── spec_helper.rb
└── support
├── capybara_helper.rb
├── helpers.rb
├── poltergeist_helper.rb
└── turnip_helper.rb
이
단계/chat_steps.rb가
steps_for :group_chat
step "..." do
end
end
이 포함
나는이 구조 ? 이 파일과 chat_steps.rb 파일을 함께 통합해야합니까?
사양/수락 또는 계단/기능을 사용하는 규칙이 있습니까?