Skip to content

Commit

Permalink
fixed hobofields rdoctests
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Jan 8, 2012
1 parent 66ae8b8 commit 2fe1db3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hobo_fields/hobo_fields.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Gem::Specification.new do |s|

s.add_runtime_dependency('hobo_support', ["= #{version}"])
s.add_development_dependency('rubydoctest', [">= 0"])
s.add_development_dependency('redcloth', [">= 0"]) # for testing rich types
s.add_development_dependency('RedCloth', [">= 0"]) # for testing rich types
s.add_development_dependency('bluecloth', [">= 0"]) # for testing rich types

s.executables = ["hobofields"]
Expand Down
3 changes: 1 addition & 2 deletions hobo_fields/test/generators.rdoctest
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,14 @@ doctest: test file exists

doctest: test content matches
>> File.read 'test/unit/alpha/beta_test.rb'
=> <<-X
=>
require 'test_helper'

class Alpha::BetaTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
X

doctest: fixture file exists
>> File.exist? 'test/fixtures/alpha/beta.yml'
Expand Down
2 changes: 1 addition & 1 deletion hobo_fields/test/prepare_testapp.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'fileutils'
TESTAPP_PATH = '/tmp/hobo_fields_testapp'
system %(rake test:prepare_testapp TESTAPP_PATH=#{TESTAPP_PATH})
system %(echo "gem 'BlueCloth'" >> #{TESTAPP_PATH}/Gemfile)
system %(echo "gem 'bluecloth'" >> #{TESTAPP_PATH}/Gemfile)
system %(echo "gem 'RedCloth'" >> #{TESTAPP_PATH}/Gemfile)
FileUtils.chdir TESTAPP_PATH
require "#{TESTAPP_PATH}/config/environment"
Expand Down

0 comments on commit 2fe1db3

Please sign in to comment.