Test against Rails 5.0.0 by default

The `DateTimeInput` `type` assertions test was relaxed due rails/rails#25469, as
it only affects Rails 5+ apps.
This commit is contained in:
Lucas Mazza 2016-07-01 14:27:10 -03:00
parent 7a9bdc2f11
commit bd71279050
No known key found for this signature in database
GPG Key ID: C009F9A6BE4A44CB
4 changed files with 52 additions and 68 deletions

View File

@ -13,21 +13,19 @@ gemfile:
- gemfiles/Gemfile.rails-4-0-stable
- gemfiles/Gemfile.rails-4-1-stable
- gemfiles/Gemfile.rails-4-2-stable
- gemfiles/Gemfile.rails-5-0-beta
- Gemfile
matrix:
fast_finish: true
allow_failures:
- rvm: ruby-head
exclude:
- rvm: 1.9.3
gemfile: gemfiles/Gemfile.rails-5-0-beta
gemfile: Gemfile
- rvm: 2.0.0
gemfile: gemfiles/Gemfile.rails-5-0-beta
gemfile: Gemfile
- rvm: 2.1.5
gemfile: gemfiles/Gemfile.rails-5-0-beta
gemfile: Gemfile
- rvm: jruby
gemfile: gemfiles/Gemfile.rails-5-0-beta
gemfile: Gemfile
notifications:
email: false
slack:

View File

@ -8,65 +8,64 @@ PATH
GEM
remote: https://rubygems.org/
specs:
actionpack (4.2.4)
actionview (= 4.2.4)
activesupport (= 4.2.4)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (5.0.0)
actionview (= 5.0.0)
activesupport (= 5.0.0)
rack (~> 2.0)
rack-test (~> 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (4.2.4)
activesupport (= 4.2.4)
actionview (5.0.0)
activesupport (= 5.0.0)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
activemodel (4.2.4)
activesupport (= 4.2.4)
builder (~> 3.1)
activesupport (4.2.4)
activemodel (5.0.0)
activesupport (= 5.0.0)
activesupport (5.0.0)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
builder (3.2.2)
concurrent-ruby (1.0.2)
country_select (1.1.3)
erubis (2.7.0)
ffi2-generators (0.1.1)
i18n (0.7.0)
json (1.8.3)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mini_portile2 (2.0.0)
minitest (5.8.0)
nokogiri (1.6.7.1)
mini_portile2 (~> 2.0.0.rc2)
rack (1.6.4)
method_source (0.8.2)
mini_portile2 (2.1.0)
minitest (5.9.0)
nokogiri (1.6.8)
mini_portile2 (~> 2.1.0)
pkg-config (~> 1.1.7)
pkg-config (1.1.7)
rack (2.0.1)
rack-test (0.6.3)
rack (>= 1.0)
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.7)
activesupport (>= 4.2.0.beta, < 5.0)
rails-dom-testing (2.0.1)
activesupport (>= 4.2.0, < 6.0)
nokogiri (~> 1.6.0)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.2)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (4.2.4)
actionpack (= 4.2.4)
activesupport (= 4.2.4)
railties (5.0.0)
actionpack (= 5.0.0)
activesupport (= 5.0.0)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.4.2)
rubinius-coverage (2.0.3)
rubinius-debugger (2.2.1)
rake (11.2.2)
rubinius-coverage (2.1)
rubinius-debugger (2.4)
rubinius-developer_tools (2.0.0)
rubinius-coverage (~> 2.0)
rubinius-debugger (~> 2.0)
rubinius-profiler (~> 2.0)
rubinius-profiler (2.0.2)
rubysl (2.1.0)
rubinius-profiler (2.1)
rubysl (2.2.0)
rubysl-abbrev (~> 2.0)
rubysl-base64 (~> 2.0)
rubysl-benchmark (~> 2.0)
@ -151,6 +150,7 @@ GEM
rubysl-tmpdir (~> 2.0)
rubysl-tsort (~> 2.0)
rubysl-un (~> 2.0)
rubysl-unicode_normalize (~> 2.0)
rubysl-uri (~> 2.0)
rubysl-weakref (~> 2.0)
rubysl-webrick (~> 2.0)
@ -162,11 +162,11 @@ GEM
rubysl-benchmark (2.0.1)
rubysl-bigdecimal (2.0.2)
rubysl-cgi (2.0.1)
rubysl-cgi-session (2.0.1)
rubysl-cgi-session (2.1.0)
rubysl-cmath (2.0.0)
rubysl-complex (2.0.0)
rubysl-continuation (2.0.0)
rubysl-coverage (2.0.3)
rubysl-coverage (2.1)
rubysl-csv (2.0.2)
rubysl-english (~> 2.0)
rubysl-curses (2.0.1)
@ -203,7 +203,7 @@ GEM
rubysl-mathn (2.0.0)
rubysl-matrix (2.1.0)
rubysl-e2mmap (~> 2.0)
rubysl-mkmf (2.0.1)
rubysl-mkmf (2.1)
rubysl-fileutils (~> 2.0)
rubysl-shellwords (~> 2.0)
rubysl-monitor (2.0.0)
@ -222,15 +222,15 @@ GEM
rubysl-observer (2.0.0)
rubysl-open-uri (2.0.0)
rubysl-open3 (2.0.0)
rubysl-openssl (2.3.0)
rubysl-openssl (2.8.0)
rubysl-optparse (2.0.1)
rubysl-shellwords (~> 2.0)
rubysl-ostruct (2.0.4)
rubysl-pathname (2.1.0)
rubysl-ostruct (2.1.0)
rubysl-pathname (2.3)
rubysl-prettyprint (2.0.3)
rubysl-prime (2.0.1)
rubysl-profile (2.0.0)
rubysl-profiler (2.0.1)
rubysl-profiler (2.1)
rubysl-pstore (2.0.0)
rubysl-pty (2.0.3)
rubysl-rational (2.0.1)
@ -243,8 +243,9 @@ GEM
rubysl-set (2.0.1)
rubysl-shellwords (2.0.0)
rubysl-singleton (2.0.0)
rubysl-socket (2.0.1)
rubysl-stringio (2.0.0)
rubysl-socket (2.1.1)
rubysl-fcntl (~> 2.0)
rubysl-stringio (2.1.0)
rubysl-strscan (2.0.0)
rubysl-sync (2.0.0)
rubysl-syslog (2.1.0)
@ -259,6 +260,7 @@ GEM
rubysl-un (2.0.0)
rubysl-fileutils (~> 2.0)
rubysl-optparse (~> 2.0)
rubysl-unicode_normalize (2.0)
rubysl-uri (2.0.0)
rubysl-weakref (2.0.0)
rubysl-webrick (2.0.0)

View File

@ -1,16 +0,0 @@
source 'https://rubygems.org'
gemspec :path => '..'
platforms :rbx do
gem 'rubysl', '~> 2.0'
gem 'rubinius-developer_tools'
end
gem 'country_select', '~> 1.1.1'
gem 'railties', '5.0.0.beta1'
gem 'activemodel', '5.0.0.beta1'
gem 'actionpack', '5.0.0.beta1'
gem 'rack', '2.0.0.alpha'
gem 'rake'
gem 'tzinfo'

View File

@ -6,7 +6,7 @@ class DateTimeInputWithHtml5Test < ActionView::TestCase
test 'input generates a datetime input for datetime attributes if HTML5 compatibility is explicitly enbled' do
with_input_for @user, :created_at, :datetime, html5: true
assert_select 'input[type="datetime"]'
assert_select 'input[type|="datetime"]'
end
test 'input generates a datetime select for datetime attributes' do
@ -76,7 +76,7 @@ class DateTimeInputWithoutHtml5Test < ActionView::TestCase
swap_wrapper do
with_input_for @user, :created_at, :datetime, html5: true
assert_select 'input[type="datetime"]'
assert_select 'input[type|="datetime"]'
end
end