Skip to content

Commit

Permalink
Merge pull request #178 from pablobm/rails-4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed May 24, 2014
2 parents 8d1f616 + cda0338 commit 5e80044
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ rvm:
gemfile:
- Gemfile
- Gemfile-rails3
- Gemfile-rails40
before_script:
- sh -e /etc/init.d/xvfb start
- export DISPLAY=:99.0
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
source 'https://rubygems.org'
gemspec

gem "railties", "~> 4.1.0"
gem "sprockets-rails"
gem "activemodel" # https://github.com/rspec/rspec-rails/pull/798
6 changes: 6 additions & 0 deletions Gemfile-rails40
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
source 'https://rubygems.org'
gemspec

gem "railties", "~> 4.0.0"
gem "sprockets-rails"
gem "activemodel" # https://github.com/rspec/rspec-rails/pull/798
1 change: 1 addition & 0 deletions lib/konacha/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def self.formatters
options.formatters ||= self.class.formatters

app.config.assets.paths << app.root.join(options.spec_dir).to_s
app.config.assets.precompile << lambda{|path| path =~ %r{\.(js|coffee)$} }
end
end
end
5 changes: 5 additions & 0 deletions spec/dummy/config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@

# Expands the lines which load the assets
config.assets.debug = true

# Adds additional error checking when serving assets at runtime.
# Checks for improperly declared sprockets dependencies.
# Raises helpful error messages.
config.assets.raise_runtime_errors = true
end

0 comments on commit 5e80044

Please sign in to comment.