Skip to content

Commit

Permalink
Updates for 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tcd committed Nov 26, 2019
1 parent 6ed6bc6 commit 637ede9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
2 changes: 1 addition & 1 deletion eddy.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
"homepage_uri" => spec.homepage,
"source_code_uri" => spec.homepage,
"changelog_uri" => "https://github.com/tcd/eddy/blob/master/CHANGELOG.md",
"documentation_uri" => "https://www.rubydoc.info/gems/eddy/#{gem.version}",
"documentation_uri" => "https://www.rubydoc.info/gems/eddy/#{spec.version}",
"yard.run" => "yri", # use "yard" to build full HTML docs.
}

Expand Down
9 changes: 0 additions & 9 deletions test/eddy/c4_test.rb

This file was deleted.

22 changes: 22 additions & 0 deletions test/eddy/eddy_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
require "test_helper"
require "rubygems"

class EddyTest < Minitest::Test

def test_that_it_has_a_version_number
refute_nil(Eddy::VERSION)
end

def test_that_versions_match
spec_path = File.join(Eddy.root_dir, "eddy.gemspec")
spec = Gem::Specification.load(spec_path)
assert_equal(Eddy::VERSION, spec.version.to_s)
end

def test_readme_links_to_correct_version
search_string = "[docs]: https://www.rubydoc.info/gems/eddy/#{Eddy::VERSION}"
readme = File.read(File.join(Eddy.root_dir, "readme.md"))
assert(readme.include?(search_string))
end

end

0 comments on commit 637ede9

Please sign in to comment.