Sha256: 4fa971945874fc7d3585edb176582292c953ba635f6a3c53e21c3c3742c9f32d
Contents?: true
Size: 572 Bytes
Versions: 1
Compression:
Stored size: 572 Bytes
Contents
require "test_helper" class PostsControllerTest < ActionController::TestCase test "renders default view" do get :index assert_equal [], assigns(:posts) assert_template "posts/index$" end test "renders overlay view" do request.env["X-View-Variant"] = "overlay" get :index assert_equal [], assigns(:posts) assert_template "posts/index.overlay$" end test "renders fashion view" do request.env["X-View-Variant"] = "fashion" get :index assert_equal [], assigns(:posts) assert_template "posts/index.fashion$" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
view_variant_responder-0.1.0 | test/functional/posts_controller_test.rb |