Skip to content

Commit

Permalink
Updated citero-jruby
Browse files Browse the repository at this point in the history
  • Loading branch information
hab278 committed Jun 20, 2013
1 parent 4598a54 commit 740da2f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion acts_as_citable.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |s|
s.test_files = Dir["test/**/*"]

s.add_dependency "rails", "~> 3.2.12"
s.add_dependency "citero-jruby", "~> 1.2.0"
s.add_dependency "citero-jruby", "~> 2.1.1"
s.add_dependency "require_all", "~> 1.2"

s.add_development_dependency "activerecord-jdbcsqlite3-adapter"
Expand Down
2 changes: 1 addition & 1 deletion lib/acts_as_citable/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ActsAsCitable
VERSION = "1.2.1"
VERSION = "2.0.0"
end
6 changes: 6 additions & 0 deletions test/acts_as_citable_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,10 @@ class RecordTest < ActiveSupport::TestCase
arr.each {|rec| assert rec.destroy}
end

test "should be able to convert to an export STYLE" do
rec = Record.new(:data => "itemType: book", :format => "csf")
assert_equal "<div class=\"csl-bib-body\">\n <div class=\"csl-entry\"> (n.d.).</div>\n</div>", rec.to_apa
assert_equal "<div class=\"csl-bib-body\">\n <div class=\"csl-entry\"> Print.</div>\n</div>", rec.to_mla
assert_equal "<div class=\"csl-bib-body\">\n\n[CSL STYLE ERROR: reference with no printed form.]\n</div>", rec.to_chicago_author_date
end
end

0 comments on commit 740da2f

Please sign in to comment.