Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add -v flag to spin and kick off integration testing
- Loading branch information
Showing
6 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,2 +1,3 @@ | |||
*.gem | *.gem | ||
docs/ | docs/ | ||
spec/tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1 +1,5 @@ | |||
require 'bundler/gem_tasks' | require 'bundler/gem_tasks' | ||
|
|||
task :default do | |||
sh "rspec spec/" | |||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
module Spin | |||
VERSION = "0.5.3" | |||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,16 @@ | |||
describe "Spin" do | |||
def root | |||
File.expand_path '../..', __FILE__ | |||
end | |||
|
|||
def spin(command, options={}) | |||
command = "ruby -I #{root}/lib #{root}/bin/spin #{command} 2>&1" | |||
result = `#{command}` | |||
raise "FAILED #{command}\n#{result}" if $?.success? == !!options[:fail] | |||
result | |||
end | |||
|
|||
it "can show current version" do | |||
spin("--version").should =~ /^\d+\.\d+\.\d+/ | |||
end | |||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters