我使用Spec文件夹中的RSpec进行测试。但是,有一天,我创建了一个名为“ Articles”的新模型/控制器,现在我以某种方式拥有了它,因此当我运行bin / rspec命令时,似乎所有功能测试都已复制到app / views / articles文件夹中(仍在specs文件夹中)。而不是在短短的几秒钟内运行42个测试,而是要花几分钟才能在几分钟内运行数百个测试。我已经从views / artciles文件夹中删除了有问题的文件夹,但是我只是想知道是否有人知道我做了什么(因为我当然不知道)!
当我推送到github时收到的消息是:
create mode 100644 app/views/articles/features/.keep
create mode 100644 app/views/articles/features/admin/admin_adds_an_article_category_spec.rb
create mode 100644 app/views/articles/features/admin/admin_modifies_articles_spec.rb
create mode 100644 app/views/articles/features/admin/admin_modifies_steps_spec.rb
create mode 100644 app/views/articles/features/admin/admin_sessions_spec.rb
create mode 100644 app/views/articles/features/user/features/.keep
create mode 100644 app/views/articles/features/user/features/admin/admin_adds_an_article_category_spec.rb
create mode 100644 app/views/articles/features/user/features/admin/admin_modifies_articles_spec.rb
create mode 100644 app/views/articles/features/user/features/admin/admin_modifies_steps_spec.rb
create mode 100644 app/views/articles/features/user/features/admin/admin_sessions_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/.keep
create mode 100644 app/views/articles/features/user/features/user/features/admin/admin_adds_an_article_category_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/admin/admin_modifies_articles_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/admin/admin_modifies_steps_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/admin/admin_sessions_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/user/features/.keep
create mode 100644 app/views/articles/features/user/features/user/features/user/features/admin/admin_adds_an_article_category_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/user/features/admin/admin_modifies_articles_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/user/features/admin/admin_modifies_steps_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/user/features/admin/admin_sessions_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/user/features/user/features/.keep
create mode 100644 app/views/articles/features/user/features/user/features/user/features/user/features/admin/admin_adds_an_article_category_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/user/features/user/features/admin/admin_modifies_articles_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/user/features/user/features/admin/admin_modifies_steps_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/user/features/user/features/admin/admin_sessions_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/user/features/user/features/user/features/.keep
create mode 100644 app/views/articles/features/user/features/user/features/user/features/user/features/user/features/admin/admin_adds_an_article_category_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/user/features/user/features/user/features/admin/admin_modifies_articles_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/user/features/user/features/user/features/admin/admin_modifies_steps_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/user/features/user/features/user/features/admin/admin_sessions_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/user/features/user/features/user/features/user/features/.keep
create mode 100644 app/views/articles/features/user/features/user/features/user/features/user/features/user/features/user/features/admin/admin_adds_an_article_category_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/user/features/user/features/user/features/user/features/admin/admin_modifies_articles_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/user/features/user/features/user/features/user/features/admin/admin_modifies_steps_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/user/features/user/features/user/features/user/features/admin/admin_sessions_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/user/features/user/features/user/features/user/features/user/features/.keep
create mode 100644 app/views/articles/features/user/features/user/features/user/features/user/features/user/features/user/features/user/features/admin/admin_adds_an_article_category_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/user/features/user/features/user/features/user/features/user/features/admin/admin_modifies_articles_spec.rb
create mode 100644 app/views/articles/features/user/features/user/features/user/features/user/features/user/features/user/features/user/features/admin/admin_modifies_steps_spec.rb
答案 0 :(得分:-1)
如果您不想将这些文件提交到GitHub,则应将其添加到.gitignore
文件中,但是请确保删除所有文件夹,这些文件已经提交到git存储库中。