Sha256: 0fd83e27c9f3c4e1a62911c0129fdedf4c888699c44af7abb101e837993ea7dd

Contents?: true

Size: 480 Bytes

Versions: 4

Compression:

Stored size: 480 Bytes

Contents

require 'test_helper'

class SiringaControllerTest < ActionController::TestCase

  tests Siringa::SiringaController

  def setup
  end

  def teardown
  end

  test "load action passing existing factory" do
    get :load, { definition: "initial", use_route: "siringa" }
    assert_response :success
  end

  test "load action passing a factory that doesn't exist" do
    get :load, { definition: "papapa", use_route: "siringa" }
    assert_response :method_not_allowed
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
siringa-0.0.5 test/controllers/siringa_controller_test.rb
siringa-0.0.4 test/controllers/siringa_controller_test.rb
siringa-0.0.3 test/controllers/siringa_controller_test.rb
siringa-0.0.1 test/controllers/siringa_controller_test.rb