adding first tiny zoomifier helper skeleton
This commit is contained in:
parent
d192d862b1
commit
06d61248ea
6
lib/zoomifier_helper.rb
Normal file
6
lib/zoomifier_helper.rb
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
module Zoomifier
|
||||||
|
module ViewHelpers
|
||||||
|
def zoomify_image_tag
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
16
spec/zoomifier_helper_spec.rb
Normal file
16
spec/zoomifier_helper_spec.rb
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
require File.dirname(__FILE__) + '/spec_helper'
|
||||||
|
require 'zoomifier_helper'
|
||||||
|
|
||||||
|
class MockActionView
|
||||||
|
include Zoomifier::ViewHelpers
|
||||||
|
end
|
||||||
|
|
||||||
|
describe Zoomifier::ViewHelpers do
|
||||||
|
before(:each) do
|
||||||
|
@view = MockActionView.new
|
||||||
|
end
|
||||||
|
|
||||||
|
it "should respond to zoomify_image_tag" do
|
||||||
|
@view.should respond_to(:zoomify_image_tag)
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user