Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9673438
commit 1663ad5
Showing
7 changed files
with
91 additions
and
1 deletion.
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--format documentation | ||
--color | ||
--order rand | ||
|
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
require 'rspec/core/rake_task' | ||
|
||
begin | ||
require 'rspec/core/rake_task' | ||
|
||
desc 'Provide private interfaces documentation' | ||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
namespace :spec do | ||
desc 'Provide public interfaces documentation' | ||
RSpec::Core::RakeTask.new(:public) do |t| | ||
t.rspec_opts = "--tag public" | ||
end | ||
end | ||
|
||
namespace :spec do | ||
desc 'Provide private interfaces documentation for development purpose' | ||
RSpec::Core::RakeTask.new(:development) do |t| | ||
t.rspec_opts = "--tag protected --tag private" | ||
end | ||
end | ||
rescue LoadError | ||
desc 'RSpec rake task not available' | ||
task :spec do | ||
abort 'RSpec rake task is not available. Be sure to install rspec-core as a gem or plugin' | ||
end | ||
end | ||
|
||
task :default => ['spec:public', 'spec:development'] |
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 | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
require 'rack/version' | ||
require 'dredd/rack/version' |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
require 'bundler/setup' | ||
Bundler.setup | ||
|
||
require 'dredd/rack' | ||
|
||
Dir["./spec/support/**/*.rb"].sort.each { |f| require f; puts f } | ||
|
||
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration | ||
RSpec.configure do |config| | ||
# make sure the deprecated RSpec 2 syntax is not used | ||
config.raise_errors_for_deprecations! | ||
|
||
# rspec-expectations config goes here. You can use an alternate | ||
# assertion/expectation library such as wrong or the stdlib/minitest | ||
# assertions if you prefer. | ||
config.expect_with :rspec do |expectations| | ||
# This option will default to `true` in RSpec 4. It makes the `description` | ||
# and `failure_message` of custom matchers include text for helper methods | ||
# defined using `chain`, e.g.: | ||
# be_bigger_than(2).and_smaller_than(4).description | ||
# # => "be bigger than 2 and smaller than 4" | ||
# ...rather than: | ||
# # => "be bigger than 2" | ||
expectations.include_chain_clauses_in_custom_matcher_descriptions = true | ||
end | ||
|
||
# rspec-mocks config goes here. You can use an alternate test double | ||
# library (such as bogus or mocha) by changing the `mock_with` option here. | ||
config.mock_with :rspec do |mocks| | ||
# Prevents you from mocking or stubbing a method that does not exist on | ||
# a real object. This is generally recommended, and will default to | ||
# `true` in RSpec 4. | ||
mocks.verify_partial_doubles = true | ||
end | ||
end |
Empty file.