Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create test suite foundation #17

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ PLATFORMS

DEPENDENCIES
bundler (~> 1.12)
minitest (~> 5.0)
rake (~> 12.0)
webpacker!

BUNDLED WITH
Expand Down
9 changes: 9 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
require "bundler/gem_tasks"

require 'rake/testtask'
Rake::TestTask.new do |t|
t.libs << 'test'
t.libs << 'lib'
t.test_files = FileList['test/**/*_test.rb']
end

task default: :test
3 changes: 3 additions & 0 deletions lib/webpacker/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Webpacker
VERSION = '0.1'
end
4 changes: 4 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'webpacker'

require 'minitest/autorun'
7 changes: 7 additions & 0 deletions test/webpacker_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'test_helper'

class WebpackerTest < MiniTest::Test
def test_version
refute_nil Webpacker::VERSION
end
end
8 changes: 7 additions & 1 deletion webpacker.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'webpacker/version'

Gem::Specification.new do |s|
s.name = 'webpacker'
s.version = '0.1'
s.version = Webpacker::VERSION
s.authors = 'David Heinemeier Hansson'
s.email = 'david@basecamp.com'
s.summary = 'Use Webpack to manage app-like JavaScript modules in Rails'
Expand All @@ -14,6 +18,8 @@ Gem::Specification.new do |s|
s.add_dependency 'railties', '~> 5'

s.add_development_dependency 'bundler', '~> 1.12'
s.add_development_dependency 'minitest', '~> 5.0'
s.add_development_dependency 'rake', '~> 12.0'

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- test/*`.split("\n")
Expand Down