zemus 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/zemus/image.rb +2 -2
- data/lib/zemus/version.rb +1 -1
- data/spec/zemus/image_spec.rb +2 -2
- data/spec/zemus_spec.rb +5 -5
- metadata +2 -2
data/lib/zemus/image.rb
CHANGED
data/lib/zemus/version.rb
CHANGED
data/spec/zemus/image_spec.rb
CHANGED
@@ -4,7 +4,7 @@ describe Zemus::Image do
|
|
4
4
|
it "embeds images" do
|
5
5
|
url = "http://google.com/image.gif"
|
6
6
|
Zemus::Image.new(url).to_embed.
|
7
|
-
should eq("<img src='http://google.com/image.gif' class='img-responsive img-thumbnail' />")
|
7
|
+
should eq("<img src='http://google.com/image.gif' class='img-responsive img-thumbnail' alt='http://google.com/image.gif' />")
|
8
8
|
end
|
9
9
|
|
10
|
-
end
|
10
|
+
end
|
data/spec/zemus_spec.rb
CHANGED
@@ -4,19 +4,19 @@ describe Zemus do
|
|
4
4
|
|
5
5
|
it "accepts test for images" do
|
6
6
|
url = "www.google.com/sample.gif"
|
7
|
-
Zemus.embed(url).should == "<img src='www.google.com/sample.gif' class='img-responsive img-thumbnail' />"
|
7
|
+
Zemus.embed(url).should == "<img src='www.google.com/sample.gif' class='img-responsive img-thumbnail' alt='www.google.com/sample.gif' />"
|
8
8
|
|
9
9
|
url = 'http://play-mario-onlne.com/old-school-mario.png'
|
10
|
-
Zemus.embed(url).should == "<img src='http://play-mario-onlne.com/old-school-mario.png' class='img-responsive img-thumbnail' />"
|
10
|
+
Zemus.embed(url).should == "<img src='http://play-mario-onlne.com/old-school-mario.png' class='img-responsive img-thumbnail' alt='http://play-mario-onlne.com/old-school-mario.png' />"
|
11
11
|
|
12
12
|
url = 'http://play-mario-onlne.com/old-school-mario.jpg'
|
13
|
-
Zemus.embed(url).should == "<img src='http://play-mario-onlne.com/old-school-mario.jpg' class='img-responsive img-thumbnail' />"
|
13
|
+
Zemus.embed(url).should == "<img src='http://play-mario-onlne.com/old-school-mario.jpg' class='img-responsive img-thumbnail' alt='http://play-mario-onlne.com/old-school-mario.jpg' />"
|
14
14
|
|
15
15
|
url = 'http://play-mario-onlne.com/old-school-mario.jpeg'
|
16
|
-
Zemus.embed(url).should == "<img src='http://play-mario-onlne.com/old-school-mario.jpeg' class='img-responsive img-thumbnail' />"
|
16
|
+
Zemus.embed(url).should == "<img src='http://play-mario-onlne.com/old-school-mario.jpeg' class='img-responsive img-thumbnail' alt='http://play-mario-onlne.com/old-school-mario.jpeg' />"
|
17
17
|
|
18
18
|
url = 'http://play-mario-onlne.com/old-school-mario.GIF'
|
19
|
-
Zemus.embed(url).should == "<img src='http://play-mario-onlne.com/old-school-mario.GIF' class='img-responsive img-thumbnail' />"
|
19
|
+
Zemus.embed(url).should == "<img src='http://play-mario-onlne.com/old-school-mario.GIF' class='img-responsive img-thumbnail' alt='http://play-mario-onlne.com/old-school-mario.GIF' />"
|
20
20
|
end
|
21
21
|
|
22
22
|
it "acceptance tests for (kick start) starter" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zemus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2014-01-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|