Sha256: 2b1eacc112fd1e67d85b3e0caa7df977fee9b099a5f2f021130572037a0bdfeb

Contents?: true

Size: 512 Bytes

Versions: 12

Compression:

Stored size: 512 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'
require 'capybara/rspec'

describe 'form_for helper' do
  before do
    class Feedback < DHS::Record
      endpoint '{+datastore}/v2/feedbacks'
    end
    assign(:instance, Feedback.new)
  end

  it 'supported by DHS' do
    render template: 'form_for.html'
    expect(rendered).to have_selector('form')
    expect(rendered).to have_selector('input[name="feedback[name]"]')
    expect(rendered).to have_selector('textarea[name="feedback[text]"]')
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dhs-1.6.0 spec/views/form_for_spec.rb
dhs-1.5.0 spec/views/form_for_spec.rb
dhs-1.4.2 spec/views/form_for_spec.rb
dhs-1.4.1 spec/views/form_for_spec.rb
dhs-1.4.0 spec/views/form_for_spec.rb
dhs-1.3.0 spec/views/form_for_spec.rb
dhs-1.2.0 spec/views/form_for_spec.rb
dhs-1.1.0 spec/views/form_for_spec.rb
dhs-1.0.3 spec/views/form_for_spec.rb
dhs-1.0.2 spec/views/form_for_spec.rb
dhs-1.0.1 spec/views/form_for_spec.rb
dhs-1.0.0 spec/views/form_for_spec.rb