Sha256: 5a489217b40f91793cbe4e8354c3640e3a1172ed528f89043ca103312068103f

Contents?: true

Size: 419 Bytes

Versions: 4

Compression:

Stored size: 419 Bytes

Contents

require 'helper'

module CouplerFunctionalTests
  class TestBase < Coupler::Test::FunctionalTest
    def test_index_when_no_projects
      visit("/")
      assert_equal 200, page.status_code
      assert page.has_content?('Getting Started')
    end

    def test_redirect_when_projects_exist
      project = Project.create(:name => 'foo')
      visit("/")
      assert_equal "/projects", current_path
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
coupler-0.0.9-java test/functional/test_base.rb
coupler-0.0.8-java test/functional/test_base.rb
coupler-0.0.7-java test/functional/test_base.rb
coupler-0.0.6-java test/functional/test_base.rb