Sha256: b5bb0cca13eaefd7be4b05eed8ca774788a65f9af00fa88b1bc756d29ed7ec3d

Contents?: true

Size: 1.17 KB

Versions: 4

Compression:

Stored size: 1.17 KB

Contents

require 'assert'
require 'deas/runner'
require 'test/support/view_handlers'

class Deas::Runner

  class BaseTests < Assert::Context
    desc "Deas::Runner"
    setup do
      @runner = Deas::Runner.new(TestViewHandler)
    end
    subject{ @runner }

    should have_reader  :app_settings
    should have_readers :request, :response, :params, :logger, :session
    should have_imeths :halt, :redirect, :content_type, :status, :render

    should "raise NotImplementedError with #halt" do
      assert_raises(NotImplementedError){ subject.halt }
    end

    should "raise NotImplementedError with #redirect" do
      assert_raises(NotImplementedError){ subject.redirect }
    end

    should "raise NotImplementedError with #content_type" do
      assert_raises(NotImplementedError){ subject.content_type }
    end

    should "raise NotImplementedError with #status" do
      assert_raises(NotImplementedError){ subject.status }
    end

    should "raise NotImplementedError with #headers" do
      assert_raises(NotImplementedError){ subject.headers }
    end

    should "raise NotImplementedError with #render" do
      assert_raises(NotImplementedError){ subject.render }
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
deas-0.16.0 test/unit/runner_tests.rb
deas-0.15.0 test/unit/runner_tests.rb
deas-0.14.1 test/unit/runner_tests.rb
deas-0.14.0 test/unit/runner_tests.rb