Skip to content

Commit

Permalink
use rspec, start writing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Shevaun Coker committed Mar 31, 2012
1 parent 79ee18f commit cda8ee6
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 26 deletions.
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--format progress
3 changes: 3 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
#!/usr/bin/env rake
require "bundler/gem_tasks"

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new('spec')
1 change: 1 addition & 0 deletions easy-deployment.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency 'capistrano_colors'

gem.add_development_dependency 'bundler'
gem.add_development_dependency 'rspec', '~> 2.8'
end
7 changes: 7 additions & 0 deletions spec/easy_deployment_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'spec_helper.rb'

describe Easy::Deployment do
it "has a version number" do
Easy::Deployment::VERSION.should be_present
end
end
15 changes: 15 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# Require this file using `require "spec_helper.rb"` to ensure that it is only
# loaded once.
#
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration

require 'rubygems'
require 'bundler'

require 'easy-deployment'

RSpec.configure do |config|
config.mock_with :rspec
end
19 changes: 0 additions & 19 deletions test/helper.rb

This file was deleted.

7 changes: 0 additions & 7 deletions test/test_easy_deployment.rb

This file was deleted.

0 comments on commit cda8ee6

Please sign in to comment.