Sha256: 77d0fa85de317bf3facfeb0e705a147c36c851ba0e3c959a78af69ffa5c5fea3

Contents?: true

Size: 537 Bytes

Versions: 1

Compression:

Stored size: 537 Bytes

Contents

require 'spec_helper'
require 'rake'

describe Rake do
  context 'rapidoc:generate' do
    before do
      Rake.application.rake_require "tasks/rapidoc"
      Rake::Task.define_task(:environment)
    end

    after do
      remove_doc 
    end

    let :run_rake_task do
      Rake::Task["rapidoc:generate"].reenable
      Rake.application.invoke_task "rapidoc:generate"
    end

    it "should create documentation" do
      run_rake_task
      File.exists?( ::Rails.root.to_s + "/rapidoc/index.html" ).should == true
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rapidoc-0.0.4 spec/lib/rake_spec.rb