Sha256: 947b57ab9f9ebfb63305c8fe78a5ab415e99934c34b5e39728c95652220d8604
Contents?: true
Size: 638 Bytes
Versions: 4
Compression:
Stored size: 638 Bytes
Contents
require 'test_helper' # Cell::ViewModel.class_eval do # include Rails.application.routes.url_helpers # FIXME: that SUCKS. # append_view_path "test/fake_app/app-cells/" # end class KaminariCellsTest < ActionController::TestCase tests UsersController setup do @routes = Rails.application.routes 50.times {|i| User.create! :name => "user#{i}"} end # TODO: test concept cells # test "rendering normal cell" do # get :index # assert_equal "<p>1</p>\n\n", @response.body # end test "rendering view model cell" do get :show, params: { id: 1 } assert_equal "<p>1</p>\n", @response.body end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
kaminari-cells-1.0.2 | test/cells_test.rb |
kaminari-cells-1.0.1 | test/cells_test.rb |
kaminari-cells-1.0.0 | test/cells_test.rb |
kaminari-cells-0.1.0 | test/cells_test.rb |