valet 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,31 +0,0 @@
1
- module Valet
2
- module Views
3
- class Version < View
4
- def initialize(application)
5
- @app = application
6
- end
7
-
8
- def name
9
- @app.name
10
- end
11
-
12
- def version
13
- @app.version
14
- end
15
-
16
- def copyright
17
- @app.copyright
18
- end
19
-
20
- def license
21
- @app.license
22
- end
23
-
24
- def authors
25
- if @app.authors.respond_to?(:join) && @app.authors.count > 0
26
- "Written by #{@app.authors.join(', ')}"
27
- end
28
- end
29
- end
30
- end
31
- end
@@ -1,20 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Valet::View do
4
- let(:view) { View.new }
5
- let(:mustache) { double("Mustache") }
6
-
7
- describe "#render" do
8
- it "creates a new Mustache object and renders it" do
9
- Mustache.stub(new: mustache)
10
- mustache.stub(render: 'Render output!')
11
- view.render.should == 'Render output!'
12
- end
13
- end
14
-
15
- describe "#escapeHTML" do
16
- it "overwrites Mustache's #escapeHTML to not escape at all" do
17
- view.escapeHTML('<html>').should == '<html>'
18
- end
19
- end
20
- end