Sha256: 838c5205d4eb2edfae629c0cfad43b1e1f438a0846d74bfb6bab88596b7c9fb8

Contents?: true

Size: 787 Bytes

Versions: 2

Compression:

Stored size: 787 Bytes

Contents

# frozen_string_literal: true

require 'application_system_test_case'

class GodsTest < ApplicationSystemTestCase
  setup do
    @god = gods(:one)
  end

  test 'visiting the index' do
    visit gods_url
    assert_selector 'h1', text: 'Gods'
  end

  test 'creating a God' do
    visit gods_url
    click_on 'New God'

    click_on 'Create God'

    assert_text 'God was successfully created'
    click_on 'Back'
  end

  test 'updating a God' do
    visit gods_url
    click_on 'Edit', match: :first

    click_on 'Update God'

    assert_text 'God was successfully updated'
    click_on 'Back'
  end

  test 'destroying a God' do
    visit gods_url
    page.accept_confirm do
      click_on 'Destroy', match: :first
    end

    assert_text 'God was successfully destroyed'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
acts_as_graph_diagram-0.1.1 test/dummy/test/system/gods_test.rb
acts_as_graph_diagram-0.1.0 test/dummy/test/system/gods_test.rb