Skip to content

Commit

Permalink
Adds support for the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
burisu committed Sep 5, 2011
1 parent b6b94e8 commit 431f76c
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 10 deletions.
10 changes: 3 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
source "http://rubygems.org"
# Add dependencies required to use your gem here.
# Example:
# gem "activesupport", ">= 2.3.5"

# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
gem "rails", "~> 3"
gem "jquery-rails"

group :development do
gem "shoulda", ">= 0"
gem "bundler", "~> 1.0.0"
gem "jeweler", "~> 1.6.4"
gem "rcov", ">= 0"
end
57 changes: 57 additions & 0 deletions combo_box.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = %q{combo_box}
s.version = "0.0.0"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = [%q{Brice Texier}]
s.date = %q{2011-09-05}
s.description = %q{Adds helpers for Rails views and controller in order to manage 'dynamic select'. It uses jQuery UI as support for inobtrusive use in forms. It's not the classic Autocompleter, its use is limited to belongs_to reflections.}
s.email = %q{brice.texier@ekylibre.org}
s.extra_rdoc_files = [
"README.rdoc"
]
s.files = [
"Gemfile",
"MIT-LICENSE",
"README.rdoc",
"VERSION",
"lib/combo_box.rb",
"lib/combo_box/action_controller.rb",
"lib/combo_box/engine.rb",
"lib/combo_box/helpers.rb",
"lib/combo_box/helpers/form_tag_helper.rb",
"lib/combo_box/railtie.rb"
]
s.homepage = %q{http://github.com/burisu/combo_box}
s.licenses = [%q{MIT}]
s.require_paths = [%q{lib}]
s.rubygems_version = %q{1.8.6}
s.summary = %q{Adds the combo_box control in Rails 3 based on jQuery UI}

if s.respond_to? :specification_version then
s.specification_version = 3

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_development_dependency(%q<shoulda>, [">= 0"])
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
s.add_development_dependency(%q<rcov>, [">= 0"])
else
s.add_dependency(%q<shoulda>, [">= 0"])
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
s.add_dependency(%q<rcov>, [">= 0"])
end
else
s.add_dependency(%q<shoulda>, [">= 0"])
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
s.add_dependency(%q<rcov>, [">= 0"])
end
end

8 changes: 7 additions & 1 deletion test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end

require 'active_support'
require 'action_pack'
require 'action_view'
require 'action_controller'
require 'action_dispatch'

require 'test/unit'
require 'shoulda'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
Expand Down
5 changes: 3 additions & 2 deletions test/test_combo_box.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
require 'helper'

class TestComboBox < Test::Unit::TestCase
should "probably rename this file and start testing for real" do
flunk "hey buddy, you should probably rename this file and start testing for real"

def test_existence
assert_not_nil ComboBox
end
end

0 comments on commit 431f76c

Please sign in to comment.