Sha256: d2c901c38240938b77b840efe74066f5f84a45f701390245731a553799d6fcb8

Contents?: true

Size: 449 Bytes

Versions: 1

Compression:

Stored size: 449 Bytes

Contents

require 'test_helper'

module RailsSandboxServer
  class SandboxControllerTest < ActionController::TestCase

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

      assert_response :success
    end

    test "should rollback" do
      post :setup, 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.2 test/sandbox_controller_test.rb