Skip to content

Commit

Permalink
Merge pull request openshift#48 from mfojtik/add-test
Browse files Browse the repository at this point in the history
Add example unit test
  • Loading branch information
bparees committed Nov 11, 2015
2 parents 65b3d6b + 84ccfb7 commit b8210c2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ gem 'sinatra'
gem 'sinatra-activerecord'
gem 'mysql2'
gem 'rake'
gem 'minitest'
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ PLATFORMS
ruby

DEPENDENCIES
minitest
mysql2
rake
sinatra
Expand Down
8 changes: 8 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
require 'bundler'

require_relative 'config/database'
require_relative 'models'

require 'sinatra/activerecord/rake'
require 'rake/testtask'

Rake::TestTask.new do |t|
t.pattern = "test/*_test.rb"
t.verbose = true
end
10 changes: 10 additions & 0 deletions test/sample_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
require 'bundler'
require 'minitest/autorun'

class TestSample < Minitest::Test

def test_sample
assert_equal "Foo", "Foo"
end

end

0 comments on commit b8210c2

Please sign in to comment.