Sha256: 06531509a1be292eb21333030eff0a53f183d89032d1ac6ef9e58ca14379fc93

Contents?: true

Size: 507 Bytes

Versions: 43

Compression:

Stored size: 507 Bytes

Contents

# frozen_string_literal: true

require "rails_helper"
require 'capybara/rspec'

describe 'form_for helper' do
  class Feedback < LHS::Record
    endpoint '{+datastore}/v2/feedbacks'
  end

  before do
    assign(:instance, Feedback.new)
  end

  it 'supported by LHS' 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

43 entries across 43 versions & 1 rubygems

Version Path
lhs-21.1.3 spec/views/form_for_spec.rb
lhs-21.1.2 spec/views/form_for_spec.rb
lhs-21.1.2.pre.keyfix.2 spec/views/form_for_spec.rb
lhs-21.1.2.pre.keyfix.1 spec/views/form_for_spec.rb
lhs-21.1.2.pre.fix.pre.cant.pre.add.pre.new.pre.key.pre.during.pre.iteration.1 spec/views/form_for_spec.rb
lhs-21.1.1.pre.pre.fix.pre.cant.pre.add.pre.new.pre.key.pre.during.pre.iteration.1 spec/views/form_for_spec.rb
lhs-21.1.0 spec/views/form_for_spec.rb
lhs-21.0.0 spec/views/form_for_spec.rb
lhs-20.1.4 spec/views/form_for_spec.rb
lhs-20.1.3.pre.paginationfix.3 spec/views/form_for_spec.rb
lhs-20.1.3.pre.paginationfix.2 spec/views/form_for_spec.rb
lhs-20.1.3.pre.paginationfix.1 spec/views/form_for_spec.rb
lhs-20.1.2 spec/views/form_for_spec.rb
lhs-20.1.1 spec/views/form_for_spec.rb
lhs-20.0.0 spec/views/form_for_spec.rb
lhs-19.10.0 spec/views/form_for_spec.rb
lhs-19.9.0 spec/views/form_for_spec.rb
lhs-19.8.2 spec/views/form_for_spec.rb
lhs-19.8.1 spec/views/form_for_spec.rb
lhs-19.8.0 spec/views/form_for_spec.rb