Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Init specs and spec tasks

  • Loading branch information...
commit 52ff90519503ace43467ebb24301aaf1d9446fda 1 parent bbc6610
luis manotas martinez authored
29 Gemfile.lock
View
@@ -1,12 +1,41 @@
+PATH
+ remote: .
+ specs:
+ rhogallery-api (0.0.1)
+ httparty (~> 0.7.7)
+ json (~> 1.5.4)
+
GEM
remote: http://rubygems.org/
specs:
+ addressable (2.2.6)
crack (0.1.8)
+ diff-lcs (1.1.2)
httparty (0.7.8)
crack (= 0.1.8)
+ json (1.5.4)
+ rake (0.9.2)
+ rcov (0.9.10)
+ rspec (2.5.0)
+ rspec-core (~> 2.5.0)
+ rspec-expectations (~> 2.5.0)
+ rspec-mocks (~> 2.5.0)
+ rspec-core (2.5.2)
+ rspec-expectations (2.5.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.5.0)
+ webmock (1.7.4)
+ addressable (> 2.2.5, ~> 2.2)
+ crack (>= 0.1.7)
PLATFORMS
ruby
DEPENDENCIES
httparty
+ json
+ rake
+ rcov (~> 0.9.8)
+ rhogallery-api!
+ rspec (~> 2.5.0)
+ webmock
17 Rakefile
View
@@ -4,3 +4,20 @@ require 'bundler'
Bundler.setup(:default, :test)
+require 'bundler/gem_tasks'
+require 'rspec/core/rake_task'
+
+desc "Run all specs"
+RSpec::Core::RakeTask.new(:spec) do |t|
+ t.rspec_opts = ["-b", "-c", "-fd"]
+ t.pattern = 'spec/**/*_spec.rb'
+end
+
+desc "Run all specs with rcov"
+RSpec::Core::RakeTask.new(:rcov) do |t|
+ t.rcov = true
+ t.rspec_opts = ["-b", "-c", "-fd"]
+ t.rcov_opts = ['--exclude', 'spec/*,gems/*']
+end
+
+task :default => :spec
1  spec/consumer_spec.rb
View
@@ -0,0 +1 @@
+require File.join(File.dirname(__FILE__), 'spec_helper')
1  spec/group_spec.rb
View
@@ -0,0 +1 @@
+require File.join(File.dirname(__FILE__), 'spec_helper')
7 spec/spec_helper.rb
View
@@ -0,0 +1,7 @@
+$:.unshift File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
+require 'rspec'
+require 'webmock/rspec'
+include WebMock::API
+
+require 'rhogallery-api'
+
Please sign in to comment.
Something went wrong with that request. Please try again.