当我运行 rspec 时,它会给我一个这样的错误
1) AuthenticationPages sign in page
Failure/Error: before { visit dash_signin_path }
ActionView::Template::Error:
Invalid CSS after "...weight: normal ": expected ";", was "!!important;"
(in /home/pubudu/Projects/sumaga-asapuwa/app/assets/stylesheets/application.css)
# (sass):1453
# ./app/views/layouts/_head.html.erb:7:in `_app_views_layouts__head_html_erb___1666364908545837178_48771360'
# ./app/views/layouts/sessions.html.erb:4:in `_app_views_layouts_sessions_html_erb___2365426594570869078_49324500'
# ./spec/requests/authentication_pages_spec.rb:7:in `block (3 levels) in <top (required)>'
问题是,我没有在我的 css 中使用 font-weight: normal
!我怎样才能指出确切的问题?我删除了我添加的所有自定义 css,但问题仍然存在。是 zurb 基金会吗?
最佳答案
我使用的一个 jquery 插件有一个 css 问题!它使用了 !!important
。
关于ruby-on-rails - 在 Rails 中,Rspec 给出了无效的 css 错误,但该应用程序运行正常。如何解决这个问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22927504/