Skip to content

Commit

Permalink
Add minitest
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Apr 24, 2019
1 parent 5bd06d3 commit d822dbe
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -26,7 +26,7 @@ TODO: Write usage instructions here

## Development

After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).

Expand Down
10 changes: 9 additions & 1 deletion Rakefile
@@ -1,2 +1,10 @@
require "bundler/gem_tasks"
task :default => :spec
require "rake/testtask"

Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList["test/**/*_test.rb"]
end

task :default => :test
1 change: 1 addition & 0 deletions actionview_precompiler.gemspec
Expand Up @@ -23,4 +23,5 @@ Gem::Specification.new do |spec|

spec.add_development_dependency "bundler", "~> 2.1.a"
spec.add_development_dependency "rake", "~> 12.0"
spec.add_development_dependency "minitest", "~> 5.0"
end
11 changes: 11 additions & 0 deletions test/actionview_precompiler_test.rb
@@ -0,0 +1,11 @@
require "test_helper"

class ActionviewPrecompilerTest < Minitest::Test
def test_that_it_has_a_version_number
refute_nil ::ActionviewPrecompiler::VERSION
end

def test_it_does_something_useful
assert false
end
end
4 changes: 4 additions & 0 deletions test/test_helper.rb
@@ -0,0 +1,4 @@
$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
require "actionview_precompiler"

require "minitest/autorun"

0 comments on commit d822dbe

Please sign in to comment.