wordnik_ruby_helpers 0.1.1 → 0.1.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 +1 -1
- data/Rakefile +5 -1
- data/lib/wordnik_ruby_helpers/version.rb +1 -1
- data/lib/wordnik_ruby_helpers.rb +1 -1
- data/spec/wordnik_ruby_helpers_spec.rb +7 -7
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
data/lib/wordnik_ruby_helpers.rb
CHANGED
@@ -5,22 +5,22 @@ describe WordnikRubyHelpers do
|
|
5
5
|
context "tag" do
|
6
6
|
|
7
7
|
it "works!" do
|
8
|
-
|
8
|
+
html_tag('span', 'wing').should == "<span>wing</span>"
|
9
9
|
end
|
10
10
|
|
11
11
|
it "accounts for symbols as element names" do
|
12
|
-
|
12
|
+
html_tag(:span, 'wing').should == "<span>wing</span>"
|
13
13
|
end
|
14
14
|
|
15
15
|
it "accounts for shorthand css classes and id" do
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
html_tag('span.big', 'wing').should == "<span class=\"big\">wing</span>"
|
17
|
+
html_tag('span#bob', 'wing').should == "<span id=\"bob\">wing</span>"
|
18
|
+
html_tag('span#bob.old.big', 'wing').should == "<span class=\"big old\" id=\"bob\">wing</span>"
|
19
|
+
html_tag('span.old.big#bob', 'wing').should == "<span class=\"big old\" id=\"bob\">wing</span>"
|
20
20
|
end
|
21
21
|
|
22
22
|
it "accounts for extra properties" do
|
23
|
-
|
23
|
+
html_tag('span#bob.old.big', 'wing', :rel => 'bird').should == "<span class=\"big old\" id=\"bob\" rel=\"bird\">wing</span>"
|
24
24
|
end
|
25
25
|
|
26
26
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: wordnik_ruby_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Zeke Sikelianos
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2011-05-
|
14
|
+
date: 2011-05-10 00:00:00 -07:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|