Skip to content

Commit

Permalink
add VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Nov 21, 2009
1 parent ad65101 commit 4f71e02
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.2.0
2 changes: 2 additions & 0 deletions lib/easy_esi.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class EasyEsi
VERSION = File.read( File.join(File.dirname(__FILE__),'..','VERSION') ).strip

def self.include_for(data)
%{<esi:include src="#{serialize(data)}"/>}
end
Expand Down
6 changes: 6 additions & 0 deletions test/easy_esi_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,10 @@ def setup
get :serialize, :render_data => data
@response.body.should == data.inspect
end
end

class TestEasyEsi < ActionController::TestCase
test "it has a VERSION" do
EasyEsi::VERSION.should =~ /^\d+\.\d+\.\d+$/
end
end

0 comments on commit 4f71e02

Please sign in to comment.