netshade-oembed_links 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/oembed_links/template_resolver.rb +1 -1
- data/oembed_links.gemspec +1 -1
- data/spec/oembed_links_spec.rb +4 -4
- metadata +1 -1
data/oembed_links.gemspec
CHANGED
data/spec/oembed_links_spec.rb
CHANGED
@@ -197,7 +197,7 @@ describe OEmbed, "transforming functions" do
|
|
197
197
|
OEmbed::TemplateResolver.template_root = @template_path
|
198
198
|
OEmbed.transform("http://test1.net/foo") do |r, url|
|
199
199
|
r.any?(:template => "test.html.erb")
|
200
|
-
end.should == "template! erb
|
200
|
+
end.should == "template! erb"
|
201
201
|
end
|
202
202
|
|
203
203
|
it "should allow for selection of different template renderers" do
|
@@ -210,12 +210,12 @@ describe OEmbed, "transforming functions" do
|
|
210
210
|
OEmbed::TemplateResolver.template_processor = :erubis
|
211
211
|
OEmbed.transform("http://test1.net/foo") do |r, url|
|
212
212
|
r.any?(:template => "test.html.erb")
|
213
|
-
end.should == "template! erb
|
213
|
+
end.should == "template! erb"
|
214
214
|
defined?(Erubis).should == "constant"
|
215
215
|
OEmbed::TemplateResolver.template_processor = :haml
|
216
216
|
OEmbed.transform("http://test1.net/foo") do |r, url|
|
217
217
|
r.any?(:template => "test.haml")
|
218
|
-
end.should == "template! haml
|
218
|
+
end.should == "template! haml"
|
219
219
|
defined?(Haml).should == "constant"
|
220
220
|
end
|
221
221
|
|
@@ -263,7 +263,7 @@ describe OEmbed, "Rails template resolving functions" do
|
|
263
263
|
|
264
264
|
OEmbed.transform("http://test1.net/foo") do |r, url|
|
265
265
|
r.any?(:template => "templates/test")
|
266
|
-
end.should == "rails erb
|
266
|
+
end.should == "rails erb"
|
267
267
|
end
|
268
268
|
|
269
269
|
it "should support Rails-like template paths with extension specified" do
|