Sha256: 16a23393b498b2e39f53f7542545c5af182818b03061813fc6fdba0f00570505

Contents?: true

Size: 525 Bytes

Versions: 7

Compression:

Stored size: 525 Bytes

Contents

require 'test_helper'

class DocsControllerTest < ActiveSupport::IntegrationCase
  DOCS_PATH = File.join(File.dirname(__FILE__), '../../app/views/opro/oauth/docs/markdown/*.md.erb')

  test 'renders index' do
    visit oauth_docs_path
    assert_equal '/oauth_docs', current_path
  end

  test 'renders show' do
    Dir[DOCS_PATH].each do |file|
      doc =  file.split('/').last.gsub('.md.erb', '')
      doc_path = oauth_doc_path(:id => doc)
      visit doc_path
      assert_equal doc_path, current_path
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
opro-0.4.0 test/integration/docs_controller_test.rb
opro-0.3.3 test/integration/docs_controller_test.rb
opro-0.3.2 test/integration/docs_controller_test.rb
opro-0.3.1 test/integration/docs_controller_test.rb
opro-0.3.0 test/integration/docs_controller_test.rb
opro-0.3.0.pre3 test/integration/docs_controller_test.rb
opro-0.3.0.pre2 test/integration/docs_controller_test.rb