Skip to content

Commit

Permalink
Added tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
devboy committed Aug 11, 2011
1 parent e58a397 commit d22e658
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ source "http://rubygems.org"
# Example:
# gem "activesupport", ">= 2.3.5"

gem "gator", "~> 0.0.14.pre"
gem "gator", "~> 0.0.17.pre"

# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
Expand Down
10 changes: 1 addition & 9 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,7 @@ end
task :test => :spec
task :default => :spec

#require 'rcov/rcovtask'
#Rcov::RcovTask.new do |test|
# test.libs << 'test'
# test.pattern = 'test/**/test_*.rb'
# test.verbose = true
# test.rcov_opts << '--exclude "gems/*"'
#end

require 'rake/rdoctask'
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""

Expand Down
5 changes: 5 additions & 0 deletions spec/generators/collection_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Gator::AS3::GeneratorCollection do
it "should have some tests"
end
5 changes: 5 additions & 0 deletions spec/generators/klass_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Gator::AS3::ClassGenerator do
it "should have some tests"
end
6 changes: 4 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
require 'gator-as3'
require 'thor'
require 'gator'
require File.dirname(__FILE__) + '/../lib/gator/as3/generators'

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f }

RSpec.configure do |config|

Expand Down

0 comments on commit d22e658

Please sign in to comment.