Sha256: f8fb276cddd5e102e07531792fa1ceb4fe6d2adbcebfc840edd115a784dd0c74
Contents?: true
Size: 715 Bytes
Versions: 2
Compression:
Stored size: 715 Bytes
Contents
require 'abstract_unit' require 'controller/fake_models' class ResponderTest < ActionController::TestCase def test_class_level_respond_to e = assert_raises(NoMethodError) do Class.new(ActionController::Base) do respond_to :json end end assert_includes e.message, '`responders` gem' assert_includes e.message, '~> 2.0' end def test_respond_with klass = Class.new(ActionController::Base) do def index respond_with Customer.new("david", 13) end end @controller = klass.new e = assert_raises(NoMethodError) do get :index end assert_includes e.message, '`responders` gem' assert_includes e.message, '~> 2.0' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activejob-lock-0.0.2 | rails/actionpack/test/controller/mime/responders_test.rb |
activejob-lock-0.0.1 | rails/actionpack/test/controller/mime/responders_test.rb |