Sha256: 80c99100c7d2594d7e2d26efd0ee9c397993bc07655e7986fb6d032e333b27e7
Contents?: true
Size: 1.4 KB
Versions: 8
Compression:
Stored size: 1.4 KB
Contents
require 'test_helper' module FlyAdmin class FootersControllerTest < ActionController::TestCase setup do @footer = footers(:one) end test "should get index" do get :index assert_response :success assert_not_nil assigns(:footers) end test "should get new" do get :new assert_response :success end test "should create footer" do assert_difference('Footer.count') do post :create, footer: { content: @footer.content, country_id: @footer.country_id, offer: @footer.offer, paysite_id: @footer.paysite_id, terms: @footer.terms, unsubscription: @footer.unsubscription } end assert_redirected_to footer_path(assigns(:footer)) end test "should show footer" do get :show, id: @footer assert_response :success end test "should get edit" do get :edit, id: @footer assert_response :success end test "should update footer" do patch :update, id: @footer, footer: { content: @footer.content, country_id: @footer.country_id, offer: @footer.offer, paysite_id: @footer.paysite_id, terms: @footer.terms, unsubscription: @footer.unsubscription } assert_redirected_to footer_path(assigns(:footer)) end test "should destroy footer" do assert_difference('Footer.count', -1) do delete :destroy, id: @footer end assert_redirected_to footers_path end end end
Version data entries
8 entries across 8 versions & 1 rubygems