Skip to content

Commit

Permalink
fix fails because of asset precompilation and digests in 4.2
Browse files Browse the repository at this point in the history
the block for Combustion.initialize! sets the old values for the test
env that turn off digests, so the matcher for the image tag in "should
be able to use bip_bool to change a boolean value using an image" works.

also moving css files to standard application.css manifest avoids the
complaints from rails about "Asset was not declared to be precompiled in
production." for each of these.
  • Loading branch information
sbeam committed Jan 22, 2016
1 parent e5630e5 commit 4b8de22
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions spec/internal/app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/*
*= require scaffold.css
*= require style.css
*= require jquery-ui-1.8.16.custom.css
*/
2 changes: 1 addition & 1 deletion spec/internal/app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Best In Place TEST APP <%= Rails::VERSION::STRING %></title>
<%= stylesheet_link_tag "scaffold", "style", "jquery-ui-1.8.16.custom" %>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tag %>
</head>
Expand Down
8 changes: 6 additions & 2 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@

require 'best_in_place'

Combustion.initialize! :active_record, :action_controller,
:action_view, :sprockets
Combustion.initialize! :active_record, :action_controller, :action_view, :sprockets do
config.assets.compile = true
config.assets.compress = false
config.assets.debug = false
config.assets.digest = false
end

require 'rspec/rails'
require 'capybara/rails'
Expand Down

0 comments on commit 4b8de22

Please sign in to comment.