Skip to content

Commit 70e3935

Browse files
committed
test against multiple rails versions
1 parent 6a2ef02 commit 70e3935

File tree

8 files changed

+28
-23
lines changed

8 files changed

+28
-23
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ script: "bundle exec rake test"
77
gemfile:
88
- gemfiles/sprockets_2_12.gemfile
99
- gemfiles/sprockets_3_0.gemfile
10+
- gemfiles/rails_4_2.gemfile
11+
- gemfiles/rails_4_1.gemfile
12+
- gemfiles/rails_4_0.gemfile
1013

1114
rvm:
1215
- 2.0.0

Rakefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ namespace :tests do
99
gemfiles = %w[
1010
sprockets_2_12
1111
sprockets_3_0
12+
rails_4_2
13+
rails_4_1
14+
rails_4_0
1215
]
1316

1417
gemfiles.each do |gemfile|

gemfiles/rails_4_0.gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
gem "rails", "~> 4.0.0"
4+
5+
# Specify your gem's dependencies in sassc-rails.gemspec
6+
gemspec path: "../"

gemfiles/rails_4_1.gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
gem "rails", "~> 4.1.0"
4+
5+
# Specify your gem's dependencies in sassc-rails.gemspec
6+
gemspec path: "../"

gemfiles/rails_4_2.gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
gem "rails", "~> 4.2.0"
4+
5+
# Specify your gem's dependencies in sassc-rails.gemspec
6+
gemspec path: "../"

sassc-rails.gemspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Gem::Specification.new do |spec|
2121
spec.add_development_dependency 'pry'
2222
spec.add_development_dependency "bundler", "~> 1.7"
2323
spec.add_development_dependency "rake", "~> 10.0"
24-
spec.add_development_dependency "minitest", "~> 5.5.1"
2524
spec.add_development_dependency 'mocha'
2625

2726
# unfortunately we require sass for now, so that we can
@@ -31,6 +30,6 @@ Gem::Specification.new do |spec|
3130

3231
spec.add_dependency "tilt"
3332

34-
spec.add_dependency 'rails', '> 4.0.0'
33+
spec.add_dependency 'rails', '>= 4.0.0'
3534
spec.add_dependency 'sprockets', '> 2.11'
3635
end

test/sassc_rails_test.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
require "test_helper"
22

3-
class SassRailsTest < MiniTest::Test
3+
class SassRailsTest < MiniTest::Unit::TestCase
44
attr_reader :app
55

66
def setup
7+
Rails.application = nil
8+
79
@app = Class.new(Rails::Application)
810
@app.config.active_support.deprecation = :log
911
@app.config.eager_load = false

test/smoke_test.rb

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)