Sha256: 055aec0f1f6736baa9b8f820d4e8206417a9505bbbb4e0831fca1758a9759b9d

Contents?: true

Size: 348 Bytes

Versions: 5

Compression:

Stored size: 348 Bytes

Contents


describe "IS_DEV" do

  before {
    @orig = ENV['IS_DEV']
  }

  after {
    ENV['IS_DEV'] = @orig
  }

  it "raises RuntimeError if passed a block and non-IS_DEV" do
    should.raise(RuntimeError) {
      ENV['IS_DEV'] = nil
      WWW_App.new {
        div {}
      }
    }.message.should.match /non-DEV/i
  end

end # === describe IS_DEV ===

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
www_app-1.2.1 specs/server-side/0000-new.rb
www_app-1.2.0 specs/server-side/0000-new.rb
www_app-1.1.0 specs/server-side/0000-new.rb
www_app-1.0.1 specs/as_ruby/0000-new.rb
www_app-1.0.0 specs/as_ruby/0000-new.rb