Skip to content

Commit

Permalink
Add spec and doc stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
remi committed Apr 7, 2012
1 parent 763bca6 commit 4bab4cf
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -2,3 +2,5 @@
.bundle
Gemfile.lock
pkg/*
.yardoc
doc
27 changes: 27 additions & 0 deletions Rakefile
@@ -1 +1,28 @@
require "bundler"
Bundler.require :development

require "bundler/gem_tasks"
require "rspec/core/rake_task"

task :default => :spec

desc "Run all specs"
RSpec::Core::RakeTask.new(:spec) do |task| # {{{
task.pattern = "spec/**/*_spec.rb"
task.rspec_opts = "--colour --format=documentation"
end # }}}

desc "Generate YARD Documentation"
YARD::Rake::YardocTask.new do |task| # {{{
task.options = [
"-o", File.expand_path("../doc", __FILE__),
"--readme=README.md",
"--markup=markdown",
"--markup-provider=maruku",
"--no-private",
"--no-cache",
"--protected",
"--title=Her",
]
task.files = ["lib/**/*.rb"]
end # }}}
2 changes: 2 additions & 0 deletions her.gemspec
Expand Up @@ -16,8 +16,10 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]

s.add_development_dependency "rake"
s.add_development_dependency "rspec"
s.add_development_dependency "yard"
s.add_development_dependency "maruku"

s.add_runtime_dependency "rest-client"
s.add_runtime_dependency "json"
Expand Down
13 changes: 13 additions & 0 deletions spec/model_spec.rb
@@ -0,0 +1,13 @@
# encoding: utf-8
require File.join(File.dirname(__FILE__), "spec_helper.rb")

describe Her::Model do

context "fetching resources" do

before do
end

end

end
10 changes: 10 additions & 0 deletions spec/spec_helper.rb
@@ -0,0 +1,10 @@
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])

require "her"

module Helpers
end

RSpec.configure do |c|
c.include Helpers
end

0 comments on commit 4bab4cf

Please sign in to comment.