Remove minitest-rails-capybara and convert feature tests to system tests
This commit is contained in:
parent
effb1b7f41
commit
3115fd41b1
6 changed files with 4 additions and 33 deletions
|
@ -1,12 +0,0 @@
|
|||
require "test_helper"
|
||||
|
||||
class CanAccessHomeTest < Capybara::Rails::TestCase
|
||||
def setup
|
||||
stub_hostip_requests
|
||||
end
|
||||
|
||||
def test_it_works
|
||||
visit root_path
|
||||
assert page.has_content? "BOpenStreetMap"
|
||||
end
|
||||
end
|
|
@ -1,6 +1,6 @@
|
|||
require "test_helper"
|
||||
require "application_system_test_case"
|
||||
|
||||
class IssuesTest < Capybara::Rails::TestCase
|
||||
class IssuesTest < ApplicationSystemTestCase
|
||||
def test_view_issues_normal_user
|
||||
sign_in_as(create(:user))
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
require "test_helper"
|
||||
require "application_system_test_case"
|
||||
|
||||
class ReportDiaryEntryTest < Capybara::Rails::TestCase
|
||||
class ReportDiaryEntryTest < ApplicationSystemTestCase
|
||||
def setup
|
||||
create(:language, :code => "en")
|
||||
@diary_entry = create(:diary_entry)
|
|
@ -5,7 +5,6 @@ ENV["RAILS_ENV"] = "test"
|
|||
require File.expand_path("../../config/environment", __FILE__)
|
||||
require "rails/test_help"
|
||||
require "webmock/minitest"
|
||||
require "minitest/rails/capybara"
|
||||
|
||||
module ActiveSupport
|
||||
class TestCase
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue