confetti 0.8.1 → 0.8.2
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.
data/Gemfile.lock
CHANGED
data/lib/confetti/version.rb
CHANGED
@@ -159,4 +159,22 @@ describe Confetti::Template::WindowsPhone7Manifest do
|
|
159
159
|
@template.version.should == "2012.0.2.0"
|
160
160
|
end
|
161
161
|
end
|
162
|
+
|
163
|
+
describe "author" do
|
164
|
+
before do
|
165
|
+
@config = Confetti::Config.new "spec/fixtures/config.xml"
|
166
|
+
@template = @template_class.new(@config)
|
167
|
+
end
|
168
|
+
|
169
|
+
it "should return the Confetti Author name in the normal case" do
|
170
|
+
@template.author.should == "Andrew Lunny"
|
171
|
+
end
|
172
|
+
|
173
|
+
it "should truncate the field to 50 chars or less" do
|
174
|
+
me = "Andrew John Lunny, son of William and Vivian, brother of Hugo"
|
175
|
+
short = "Andrew John Lunny, son of William and Vivian, brot"
|
176
|
+
@config.author.name = me
|
177
|
+
@template.author.should == short
|
178
|
+
end
|
179
|
+
end
|
162
180
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 8
|
8
|
-
-
|
9
|
-
version: 0.8.
|
8
|
+
- 2
|
9
|
+
version: 0.8.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Andrew Lunny
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2012-06-
|
19
|
+
date: 2012-06-20 00:00:00 -07:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|