Sha256: 5feef0c18ee6e562253c2e86dae88bb6cb499cc3a02074960005ccc8783edcdb

Contents?: true

Size: 663 Bytes

Versions: 8

Compression:

Stored size: 663 Bytes

Contents

require "render"

describe Render do
  # Just give me this one existential thought to commemerate Prague.
  it "exists" do
    Render.should be_true
  end

  describe "configuration" do
    describe ".live" do
      before(:each) do
        @original_live = Render.live
      end

      after(:each) do
        Render.live = @original_live
      end

      it "defaults to true" do
        Render.live.should == true
      end

      it "can be set to faux-request mode" do
        Render.live = false
        Render.live.should == false
      end
    end

    describe "logger" do
      it "exits" do
        Render.logger.should be
      end
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
render-0.1.2 spec/unit/render_spec.rb
render-0.1.1 spec/unit/render_spec.rb
render-0.1.0 spec/unit/render_spec.rb
render-0.0.9 spec/unit/render_spec.rb
render-0.0.8 spec/unit/render_spec.rb
render-0.0.7 spec/unit/render_spec.rb
render-0.0.6 spec/unit/render_spec.rb
render-0.0.5 spec/unit/render_spec.rb