Sha256: b249c05116822456ecd2ffea39b6235f7d30d43506830f73d023d1f849248329

Contents?: true

Size: 564 Bytes

Versions: 1

Compression:

Stored size: 564 Bytes

Contents

require 'test_helper'

module RailsSandboxServer
  class SandboxControllerTest < ActionController::TestCase
    include Engine.routes.url_helpers

    setup do
      @routes = Engine.routes
    end

    test "should load fixture" do
      post :setup, params: { fixture: 'articles', fixtures_dir: Rails.root.join('test/another_fixtures/') }

      assert_response :success
    end

    test "should rollback" do
      post :setup, params: { fixture: 'articles' }
      assert_response :success

      get :rollback
      assert_response :success
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_sandbox_server-0.0.3 test/sandbox_controller_test.rb