Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Commit

Permalink
Attempt at adding specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Scott authored and Brian Scott committed May 17, 2013
1 parent 26c1599 commit 3d108b7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ GEM
rack (1.5.2)
rack-protection (1.5.0)
rack
rack-test (0.6.2)
rack (>= 1.0)
rake (10.0.4)
rdoc (4.0.1)
json (~> 1.4)
Expand Down Expand Up @@ -86,5 +88,6 @@ PLATFORMS
DEPENDENCIES
chef-rundeck!
jeweler
rack-test
rspec (>= 1.2.9)
yard
3 changes: 3 additions & 0 deletions chef-rundeck.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,22 @@ Gem::Specification.new do |s|
s.add_runtime_dependency(%q<mixlib-cli>, [">= 0"])
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
s.add_development_dependency(%q<yard>, [">= 0"])
s.add_development_dependency(%q<rack-test>, [">= 0"])
else
s.add_dependency(%q<sinatra>, [">= 0"])
s.add_dependency(%q<chef>, [">= 0"])
s.add_dependency(%q<mixlib-cli>, [">= 0"])
s.add_dependency(%q<rspec>, [">= 1.2.9"])
s.add_dependency(%q<yard>, [">= 0"])
s.add_development_dependency(%q<rack-test>, [">= 0"])
end
else
s.add_dependency(%q<sinatra>, [">= 0"])
s.add_dependency(%q<chef>, [">= 0"])
s.add_dependency(%q<mixlib-cli>, [">= 0"])
s.add_dependency(%q<rspec>, [">= 1.2.9"])
s.add_dependency(%q<yard>, [">= 0"])
s.add_dependency(%q<rack-test>, [">= 0"])
end
end

4 changes: 2 additions & 2 deletions spec/chef-rundeck_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe "ChefRundeck" do
it "fails" do
fail "hey buddy, you should probably rename this file and start specing for real"
it "should respond to GET" do
get '/'
end
end
13 changes: 12 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,18 @@
require 'chef-rundeck'
require 'rspec'
require 'rspec/autorun'
require 'rack/test'

# setup test environment
# set :environment, :test
# set :run, false
# set :raise_errors, true
# set :logging, false

def app
ChefRundeck.new
end

RSpec.configure do |config|

config.include Rack::Test::Methods
end

0 comments on commit 3d108b7

Please sign in to comment.