webapp 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,14 @@
1
1
  require File.join(File.dirname(__FILE__), 'test_helper')
2
- require "rack/test"
2
+ require File.join(Project.root, 'lib', 'server')
3
+ require 'rack/test'
3
4
 
4
5
  class ServerTest < Test::Unit::TestCase
5
6
  include Rack::Test::Methods
6
7
  def app ; Sinatra::Application end
7
8
 
8
- def test_you_suck
9
- assert(false, "Write some tests.")
9
+ def test_homepage_whatever
10
+ get '/'
11
+ assert_equal(200, last_response.status)
12
+ assert_equal('Hello', last_response.body)
10
13
  end
11
- end
14
+ end
data/webapp.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'webapp'
3
- s.version = '0.0.6'
3
+ s.version = '0.0.7'
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.summary, s.description = 'Cmd that generates a webapp skeleton'
6
6
  s.author = 'George Malamidis'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Malamidis